/* Modern Reset and Variables */
:root {
    --bg-color: #000000; /* True Black for maximum contrast */
    --primary-color: #ffffff; /* Stark White for text/accents */
    --primary-hover: #e2e8f0;
    --secondary-color: #333333; /* Dark Grey for subtle definition */
    --text-color: #f8fafc;
    --text-muted: #888888;
    --glass-bg: rgba(10, 10, 10, 0.6); /* Darker glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
    --glow: 0 0 20px rgba(255, 255, 255, 0.1); /* Subtle white glow */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Updated Background - "Grainy" or "Noise" effect is hard with pure CSS, 
   so we'll use a very subtle gradient mesh that feels more "premium" */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 0%, rgba(50, 50, 50, 0.15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(30, 30, 30, 0.1), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Page Transition */
body.fade-in {
    animation: fadeInPage 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInPage {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

ul {
    list-style: none !important; /* Explicit removal of bullets */
}

a {
    text-decoration: none !important; /* Explicit removal of underlines */
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), var(--glow);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 100px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: white;
    color: black;
    border: 1px solid white;
}

.btn-primary:hover {
    background: black;
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.btn-outline:hover {
    border-color: white;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--text-muted); /* Subtle accent */
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none; /* Redundant but safe */
}

.nav-link {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    /* Removed ::after underline */
}

.nav-link:hover, .nav-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5); /* Glow instead of underline */
}

.btn-contact {
    /* Make contact button look like a link or subtle outline to be minimal */
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white !important;
}

.btn-contact:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 30px;
    height: 2px; /* Thinner bars for elegance */
    margin: 6px auto;
    background-color: white;
    transition: var(--transition);
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: 6rem; /* Huge typography */
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    /* Gradient text effect */
    background: linear-gradient(to bottom, #fff, #666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Page Headers */
.page-header {
    padding-top: 180px;
    padding-bottom: 6rem;
    text-align: center;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.page-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    letter-spacing: 1px;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text wider than image */
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.about-grid h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Create a glowing border effect */
    padding: 5px; 
    background: linear-gradient(135deg, #444, #111);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.image-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.05);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px; /* Inner radius */
    filter: grayscale(20%); /* Artistic touch */
    transition: var(--transition);
}

.about-image:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}


/* Skills Page */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.skill-item {
    text-align: left; /* Alignment change for variety */
}

.skill-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05); /* Very subtle default border */
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: black;
        width: 100%;
        transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: -1; /* Behind hamburger */
    }

    .nav-menu.active { left: 0; }
    
    /* Make sure hamburger is visible on top of menu */
    .hamburger { z-index: 1001; }

    .hero h1 { font-size: 3.5rem; }
    .page-title { font-size: 3rem; }
    
    .about-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .btn { padding: 0.8rem 2rem; }

    /* Contact Page Mobile Adjustments */
    .page-header {
        padding-top: 100px; /* Further reduced */
        padding-bottom: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* Tablet Responsiveness */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .page-header {
        padding-top: 140px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 2rem;
    }
}
