:root {
    /* Colors */
    --bg-main: #0B0F19; /* Midnight Blue */
    --bg-darker: #06090E;
    --bg-card: rgba(17, 24, 39, 0.7);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent: #14B8A6; /* Electric Teal */
    --accent-glow: rgba(20, 184, 166, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables */
    --transition-speed: 0.3s;
    --glass-blur: blur(12px);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

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

a:hover {
    color: #0f9688;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Glassmorphism utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(20, 184, 166, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: #0f9688;
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* Layout Utilities */
.section {
    padding: 6rem 0;
}
.bg-darker {
    background-color: var(--bg-darker);
}
.mt-2 {
    margin-top: 1.5rem;
}

/* ---------------- Navbar ---------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-speed);
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}
.logo span {
    color: var(--accent);
}

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

.nav-links li a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

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

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent);
}

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

/* ---------------- Hero Section ---------------- */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 0 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.hero .subtitle {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero .title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .role {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero .summary-short {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Background Animated Blobs */
.bg-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(20, 184, 166, 0.3);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(30, 58, 138, 0.4); /* Dark blue */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

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

/* ---------------- About Section ---------------- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}
.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}
.about-text strong {
    color: var(--text-primary);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.info-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.skill-category h3 i {
    color: var(--accent);
}

.skill-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}
.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.skill-list li:last-child {
    border-bottom: none;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}
.tag:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.soft-skills .tag {
    border-color: rgba(255,255,255,0.1);
    background: transparent;
}

/* ---------------- Experience Timeline ---------------- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 1;
}

.timeline-content {
    padding: 2rem;
}

.timeline-date {
    display: inline-block;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.timeline-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.timeline-details strong {
    color: var(--text-primary);
}

.timeline-details ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}
.timeline-details ul li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}
.timeline-details ul li strong {
    color: var(--text-primary);
}

/* ---------------- Education & Certifications ---------------- */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.edu-card h3, .cert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.cert-card h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.cert-card h3 i {
    color: var(--accent);
}

.edu-inst {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.edu-date, .cert-date {
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.cert-list li {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.2rem;
}
.cert-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cert-list li strong {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------------- Contact Section ---------------- */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all var(--transition-speed);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.detail-text h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}
.detail-text a, .detail-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------------- Footer ---------------- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------------- Reveal Animations ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---------------- Media Queries ---------------- */
@media (max-width: 992px) {
    .skills-grid, .edu-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left var(--transition-speed);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
        transform: translateX(-5px);
    }
    
    .cert-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 1rem 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}
