/* --- CSS Variables --- */
:root {
    /* Color Palette - Premium Dark Theme */
    --bg-dark: #0f172a;           /* Deep slate blue/black */
    --bg-darker: #0b1120;         /* Darker slate for contrast */
    --bg-card: rgba(30, 41, 59, 0.7); /* Translucent card background */
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    
    --primary: #38bdf8;           /* Light Sky Blue */
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #818cf8;         /* Indigo/Purple accent */
    --accent: #f472b6;            /* Pink accent for tiny details */
    
    --text-main: #f8fafc;         /* White-ish */
    --text-muted: #94a3b8;        /* Light Slate Gray */
    --text-dark: #334155;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtle background grid pattern */
    background-image: 
        radial-gradient(circle at center, rgba(56, 189, 248, 0.03) 0, transparent 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-dark);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

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

ul {
    list-style: none;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-medium), background var(--transition-medium);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

/* --- Navigation / Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: 1.5rem 0;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

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

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

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

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

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

.hero-text .name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-text .title {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text .summary {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-graphic {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Orbs for modern feel */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.3);
    top: 10%;
    left: 20%;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(129, 140, 248, 0.3);
    bottom: 10%;
    right: 20%;
    animation: float 10s ease-in-out infinite reverse;
}

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

.tech-stack-preview {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 3rem;
    color: var(--text-main);
    animation: float 6s ease-in-out infinite;
}

.tech-stack-preview i {
    transition: transform var(--transition-fast), filter var(--transition-fast);
}
.tech-stack-preview i:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}


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

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.info-item a:hover {
    color: var(--primary);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.skill-category {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-medium);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.skill-category h3 i {
    color: var(--secondary);
}

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

.tag {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

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

/* Internal Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px; /* Position line near the left edge */
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 100px; /* Space for line and dot */
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 31px; /* Align dot on the line */
    top: 24px; /* Align near top of content box */
    width: 20px;
    height: 20px;
    background: var(--bg-darker);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: var(--primary);
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.timeline-header h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 500;
}

.timeline-header .date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.duties {
    padding-left: 1.2rem;
}

.duties li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: disc;
    font-size: 0.95rem;
}

.duties li::marker {
    color: var(--secondary);
}


/* --- Education & Certifications --- */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: var(--glass-border);
    transition: transform var(--transition-fast);
}

.cert-card:hover {
    transform: translateX(5px);
    background: var(--bg-card-hover);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.cert-card:hover .cert-icon.fa-aws { color: #FF9900; }
.cert-card:hover .cert-icon.fa-google { color: #4285F4; }

.cert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cert-card span {
    font-size: 0.9rem;
    color: var(--primary);
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
}

.edu-icon {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.edu-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.edu-details h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

.edu-details .date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary);
    background: rgba(129, 140, 248, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}


/* --- Footer --- */
footer {
    background: #060a12;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.footer-logo span {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* --- Animations & Utilities Classes (used with JS) --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    transition-delay: 0.2s;
}

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

/* initial load animations */
.slide-up { animation: slideUp 0.8s ease forwards; opacity: 0; }
.slide-up-delay-1 { animation: slideUp 0.8s ease 0.1s forwards; opacity: 0; }
.slide-up-delay-2 { animation: slideUp 0.8s ease 0.2s forwards; opacity: 0; }
.slide-up-delay-3 { animation: slideUp 0.8s ease 0.3s forwards; opacity: 0; }
.slide-up-delay-4 { animation: slideUp 0.8s ease 0.4s forwards; opacity: 0; }

.fade-in { animation: fadeIn 1.2s ease 0.5s forwards; opacity: 0; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .about-grid, .edu-cert-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        border-left: var(--glass-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { right: 0; }
    
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    
    .hero-text .name { font-size: 3rem; }
    .hero-text .title { font-size: 1.5rem; }
    .hero-text .summary { margin: 0 auto 2rem; }
    .cta-buttons { justify-content: center; }
    
    .hero-graphic {
        display: none; /* Hide abstract graphic on mobile to save space */
    }

    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 60px; }
    .timeline-dot { left: 11px; }
    .timeline-header .date { position: relative; display: inline-block; margin-top: 0.5rem; }
    
    .stats-grid { flex-direction: column; }
}
