/* 
 * Custom Stylesheet for Senior Developer Portfolio 
 * Theme: Premium Dark Mode
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* CSS Variables for Easy Theming */
:root {
    --bg-main: #0f172a;       /* Deep slate background */
    --bg-darker: #0b1120;     /* Darker slate for contrast sections */
    --bg-card: #1e293b;       /* Card background */
    --text-main: #f8fafc;     /* White text */
    --text-muted: #94a3b8;    /* Muted gray text */
    --accent-color: #3b82f6;  /* Primary blue accent */
    --accent-hover: #2563eb;  /* Darker blue for hover states */
    --gradient-start: #3b82f6; 
    --gradient-end: #8b5cf6;   /* Purple for gradient */
    
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.text-light { color: var(--text-main) !important; }
.text-light-muted { color: var(--text-muted) !important; }
.bg-darker { background-color: var(--bg-darker) !important; }
.bg-card { background-color: var(--bg-card) !important; }

/* Typography & Colors */
.text-accent {
    color: var(--accent-color) !important;
}

.text-gradient {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tracking-wide { letter-spacing: 0.1em; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.btn-accent:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-light:hover {
    color: var(--bg-main);
}

/* Navigation Bar */
.navbar {
    transition: all var(--transition-speed) ease;
    padding: 1.5rem 0;
}
.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
}
.hero-blob {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* About Image */
.about-image {
    width: 100%;
    height: 400px;
    background: url('images/profile_pic.png') center/cover no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Skills Grid */
.skill-card {
    transition: transform var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}
.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    border-radius: 3px;
}
.bg-accent {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px;
}
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    left: 13px;
    top: 24px;
    box-shadow: 0 0 10px var(--accent-color);
}
.timeline-content {
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}
.timeline-content:hover {
    transform: translateX(5px);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Portfolio Grid */
.portfolio-filter .filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 20px;
    transition: all var(--transition-speed);
}
.portfolio-filter .filter-btn.active,
.portfolio-filter .filter-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.portfolio-card {
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.portfolio-img-wrapper {
    background: linear-gradient(45deg, #1e293b, #334155);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.portfolio-card:hover .portfolio-img-wrapper {
    background: linear-gradient(45deg, #2563eb, #8b5cf6);
}

/* Contact Form */
.form-control {
    border-color: rgba(255,255,255,0.1) !important;
}
.form-control:focus {
    background-color: var(--bg-main) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}
.social-links .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(255,255,255,0.1);
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.social-links .btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Scroll to top */
#scrollToTop {
    z-index: 1000;
}
