/* =========================================
   CSS Custom Properties & Reset
   ========================================= */
:root {
    /* Color Palette */
    --navy-bg: #0B1F3B;
    --navy-light: #16325B;
    --navy-lighter: #234E8A;
    
    --accent-blue: #4A90E2;
    --accent-blue-hover: #357ABD;
    --accent-teal: #48E5C2;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0B0C4;
    --text-tertiary: #728AAB;
    
    --white: #FFFFFF;
    --gray-dark: #1E293B;
    
    /* Glassmorphism */
    --glass-bg: rgba(22, 50, 91, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-normal: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-slow: 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}  
   
body {
    background-color: var(--navy-bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Background Elements
   ========================================= */
.bg-gradient-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, rgba(11, 31, 59, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: gradientMove 15s ease-in-out infinite alternate;
}

.bg-gradient-2 {
    position: absolute;
    bottom: 20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(72, 229, 194, 0.1) 0%, rgba(11, 31, 59, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    animation: gradientMove 20s ease-in-out infinite alternate-reverse;
}

@keyframes gradientMove {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-teal);
}

.section-padding {
    padding: 100px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 200px;
    background-color: var(--glass-border);
    margin-left: 20px;
}

/* =========================================
   Components
   ========================================= */
/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: var(--navy-bg);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(72, 229, 194, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    color: var(--navy-bg);
    box-shadow: 0 8px 25px rgba(72, 229, 194, 0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: var(--glass-border);
    border-color: var(--text-secondary);
}

.btn-outline-small {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 6px;
}

.btn-outline-small:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: var(--transition-normal);
}

.navbar.glassmorphism {
    background: rgba(11, 31, 59, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-teal);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--nav-height);
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    color: var(--accent-teal);
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-teal);
    animation: typing 2.5s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 14ch } /* "Hi, my name is" is 14 chars */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-teal) }
}

.name {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #FFFFFF, var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-blob {
    width: 350px;
    height: 350px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* =========================================
   Skills Section
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.tag i {
    color: var(--accent-blue);
}

/* =========================================
   Experience Section
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    margin-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: -46px; /* 60px margin - 14px dot offset */
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.timeline-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    margin-bottom: 0;
}

.company {
    color: var(--accent-teal);
    font-weight: 500;
}

.date {
    display: block;
    font-family: monospace;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.duties {
    list-style-type: none;
}

.duties li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.duties li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* =========================================
   Footer / CTA
   ========================================= */
.footer {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    padding-bottom: 2rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer h2 {
    font-size: 2.5rem;
}

.footer p {
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.copyright {
    font-family: monospace;
    color: var(--text-tertiary) !important;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: calc(var(--nav-height) + 2rem);
    }

    .hero-content {
        margin: 0 auto;
    }

    .description {
        margin: 0 auto 2.5rem auto;
    }

    .cta-group {
        justify-content: center;
    }
    
    .section-title {
        justify-content: center;
    }
    
    .section-title::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real project, implement mobile menu logic here */
    }

    .mobile-menu-btn {
        display: block;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        margin-left: 30px;
    }

    .timeline-dot {
        left: -36px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-image-blob {
        width: 280px;
        height: 280px;
    }
}

/* =========================================
   Projects Section
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-teal);
    font-size: 0.95rem;
}

.project-links a:hover {
    color: var(--white);
}
