:root {
    --nav-bg: #ffffff;
    --nav-text: #0f172a;
    --body-bg: #0f172a; /* Slate 900 */
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    --accent: #38bdf8; /* Sky 400 */
    --card-bg: #1e293b; /* Slate 800 */
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Navbar (Light Theme) */
.navbar {
    background-color: var(--nav-bg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: 2px solid #1e293b;
    border-bottom: 3px solid #000000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nav-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--accent); /* Optional: change text color too on hover */
}


/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--nav-text);
    border-radius: 2px;
}

/* Sections (Dark Theme) */
section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    scroll-margin-top: var(--nav-height); /* Fix scroll offset */
    min-height: calc(100vh - var(--nav-height)); /* Full viewport height minus navbar */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

section:last-child {
    border-bottom: none;
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Specific Section Styles */
/* Specific Section Styles */
/* Specific Section Styles */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    color: var(--text-secondary);
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    animation: pulseBackground 10s ease-in-out infinite alternate;
}

@keyframes pulseBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content p {
    margin: 0;
    max-width: 100%;
}

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

.hero-image img {
    max-width: 100%;
    /* max-height: 450px; Removed to allow aspect-ratio to control size */
    width: 400px; /* Fixed size for perfect circle */
    height: 400px;
    object-fit: cover; /* Ensures the photo fills the circle */
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2); /* Softer glow instead of hard shadow */
    border: 4px solid rgba(56, 189, 248, 0.3); /* Ring effect */
    animation: floatImage 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 70px rgba(56, 189, 248, 0.4);
    border-color: var(--accent);
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--accent);
}

.timeline-item {
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background-color: #020617; /* Even darker for footer */
}

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

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-icon {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide for now on mobile, needs JS for toggle */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    
    h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image {
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-image img {
        max-height: 300px;
    }

}

/* Social Side Panel */
/* Social Side Panel */
.social-panel {
    position: fixed;
    top: calc(50% + 40px); /* Center vertically in the content area (50% + half navbar height) */
    transform: translateY(-50%);
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 900;
    background-color: var(--card-bg);
    padding: 15px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-panel::after {
    display: none; 
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.1);
}

/* Shift content left on desktop to accommodate panel */
/* Shift content left on desktop to accommodate panel */
@media (min-width: 769px) {
    /* Apply shift to containers inside main to keep section backgrounds full width */
    main .container {
        padding-right: 120px; /* Push content away from the right edge */
    }
    
    /* Ensure hero background stays full width */
    .hero-section {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Reset for mobile */
@media (max-width: 768px) {
    main .container {
        padding-right: 2rem; /* Reset to default container padding */
    }
    
    .social-panel {
        position: static;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 2rem 0;
        background-color: transparent;
        transform: none;
        border: none;
        box-shadow: none;
    }
}

/* Small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .hero-image img {
        width: 280px;
        height: 280px;
    }
    
    .nav-links {
        padding: 1.5rem;
    }
}

/* Extra small devices (phones, 400px and down) */
@media only screen and (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-image img {
        width: 240px;
        height: 240px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
