/* Base Setup for Apple-like Aesthetic */
:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-muted: #86868b;
    --accent-color: #0000FF; /* Electric Blue from logo */
    --hover-accent: #3333FF;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Tweaks */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: 38px;
    border-radius: 22%; /* iOS styling squircle shape */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

/* Next Frontier Enhancements */
.glass-card {
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 255, 0.15);
}

.space-bg {
    position: fixed;
    top: -10%; left: -10%; width: 120%; height: 120%;
    z-index: -2;
    background-image: url('image.png');
    background-size: max(600px, 50vw);
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.85;
    -webkit-mask-image: radial-gradient(ellipse at center 20%, black 20%, transparent 60%);
    mask-image: radial-gradient(ellipse at center 20%, black 20%, transparent 60%);
    animation: breathe 25s infinite alternate ease-in-out;
}

.overlay-grad {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center top, rgba(0,0,255, 0.05) 0%, rgba(0,0,0, 0.95) 80%);
    pointer-events: none;
}

@keyframes breathe {
    0% { transform: scale(1) translateY(0) rotate(0deg); }
    100% { transform: scale(1.05) translateY(2%) rotate(2deg); }
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.sub-heading {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.main-heading {
    font-size: clamp(3rem, 10vw, 6rem);
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-color) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    position: relative;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    font-weight: 400;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    animation: scroll-down 2s infinite cubic-bezier(0.6, 0.05, 0.1, 1);
}

@keyframes scroll-down {
    0% { transform: translateY(-100%) scaleY(0); transform-origin: top; }
    50% { transform: translateY(0) scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { transform: translateY(100%) scaleY(0); transform-origin: bottom; }
}

/* Global Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    line-height: 1.1;
}

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-grid strong {
    color: var(--text-color);
    font-weight: 500;
}

/* Timeline/Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

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

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Skills & Education */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-list li {
    font-size: 1.2rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.skills-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-color);
}

.edu-item {
    margin-bottom: 2rem;
}

.edu-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

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

/* Contact */
.text-center {
    text-align: center;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    background: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

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

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Keep simple on mobile */
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Utility classes for GSAP */
.reveal-text, .fade-up {
    visibility: hidden; /* GSAP will make them visible */
}
