:root {
    /* Brutalist Palette */
    --bg-color: #f4f4f4; /* Off-white background like reference */
    --surface-color: #ffffff;
    --text-primary: #050505; /* Deep Black */
    --text-secondary: #555555;
    
    --accent-primary: #000000; /* Black is the new accent */
    --accent-secondary: #333333;
    
    --white: #ffffff;
    
    /* Typography - Big & Bold */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Layout */
    --container-width: 1400px; /* Wider canvas */
    --section-padding: 120px 60px;
    
    /* Variables for Big Type */
    --display-size: clamp(4rem, 15vw, 12rem);
    --display-line-height: 0.85;
    --display-spacing: -0.04em;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* Ultra smooth "apple-like" ease */
}

/* Dark Mode Overrides (Optional, if user wants to keep it) */
body:not(.light-mode) {
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --text-primary: #f4f4f4;
    --text-secondary: #888888;
    --accent-primary: #ffffff;
}

/* Global Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 120px; /* Prevents navbar overlap */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

/* Improve section spacing to avoid collision */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1; /* Stacking context */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Utility Class for Massive Text */
.display-text {
    font-size: var(--display-size);
    line-height: var(--display-line-height);
    letter-spacing: var(--display-spacing);
    font-weight: 900;
    text-transform: uppercase;
    word-break: break-word; /* Prevent overflow */
}

/* Glass Utility */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

/* Navbar with Glassmorphism */
.navbar {
    position: fixed;
    top: 20px;
    right: 40px; /* Right aligned card */
    left: auto; /* Remove centering */
    transform: none; /* Remove centering */
    width: auto; /* Shrink to fit content */
    padding: 12px 12px; /* Small circular/pill padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px; /* Pill shape */
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none !important; /* Force remove bullets */
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none !important;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    transition: var(--transition-smooth); /* Smooth color change */
}

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

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

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

.btn-nav {
    padding: 10px 24px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border) !important;
    border-radius: 50px !important;
    color: var(--white) !important;
}

.btn-nav {
    padding: 10px 24px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border) !important;
    border-radius: 50px !important;
    color: var(--white) !important;
    transition: var(--transition-smooth); /* Smooth all transitions */
}

.btn-nav:hover {
    background: var(--surface-hover) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(189, 0, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
}

.accent-period {
    color: var(--accent-secondary);
}

/* Scroll Indicator */
.scroll-down {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow-down {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    40% {
        transform: translateY(8px);
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    60% {
        transform: translateY(4px);
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
}

/* Mobile Responsive */
/* Hero Poster Section - Full Screen Layout */
.hero-poster {
    height: 100vh; /* Exactly one screen */
    max-height: 100vh;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-color);
}

.poster-container {
    width: 100%;
    max-width: var(--container-width);
    height: 100%;
    padding: 90px 60px 30px 60px; /* Optimized padding */
    display: grid;
    grid-template-rows: minmax(50px, auto) 1fr minmax(auto, 25%); /* Give more room to center */
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Reduced gap */
    position: relative;
    overflow: hidden;
}

/* Corner Metadata */
.corner-tl {
    grid-row: 1;
    grid-column: 1;
    text-align: left;
}

.corner-tr {
    grid-row: 1;
    grid-column: 2;
    text-align: right;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Center Display */
.display-center {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Allow natural sizing */
}

.display-text {
    font-size: clamp(3.5rem, 10vw, 7rem); /* Reduced max to fit better */
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    text-align: center;
}

/* Bottom Section */
.poster-bottom-center {
    grid-row: 3;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center; /* X-axis: centered */
    justify-content: flex-end; /* Y-axis: pushed to bottom */
    text-align: center;
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.poster-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    line-height: 1.4;
}

.hero-skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 0 0;
    max-width: 800px;
}

.hero-skills-list .skill-pill {
    padding: 5px 12px; /* Compact */
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    background: transparent;
}

.scroll-down {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.cta-group-poster {
    margin: 8px 0;
}

/* Typography Update */
.section-title {
    font-size: clamp(3rem, 5vw, 6rem); /* Massive like About */
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    text-align: center; 
    color: var(--text-primary);
}

/* Mobile Responsive */

@media (max-width: 992px) {
    .hero-poster {
        height: 100vh;
        min-height: 100vh;
        padding: 15px;
    }
    
    .poster-container {
        padding: 70px 20px 25px 20px; /* Balanced padding */
        grid-template-rows: auto minmax(35%, 1fr) auto; /* Optimized proportions */
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .corner-tl {
        grid-row: 1;
        grid-column: 1;
        text-align: left;
    }
    
    .corner-tr {
        grid-row: 1;
        grid-column: 1;
        text-align: right;
        margin-top: 8px;
    }
    
    /* Smaller metadata on mobile */
    .meta-label {
        font-size: 0.6rem !important;
    }
    
    .meta-value {
        font-size: 0.8rem !important;
    }
    
    .display-center {
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .poster-bottom-center {
        grid-row: 3;
        margin: 0;
        gap: 8px !important; /* Tighter bottom spacing */
    }
    
    .display-text {
        font-size: clamp(2.5rem, 10vw, 4.5rem) !important; /* Bigger for strong impact */
        line-height: 0.95;
    }
    
    /* Adjust outline stroke for bigger text on mobile */
    .outline-text {
        -webkit-text-stroke: 1.5px var(--text-primary) !important; /* Thinner stroke for mobile */
    }
    
    /* Compact bottom content */
    .hero-skills-list {
        gap: 5px;
        margin: 5px 0;
    }
    
    .hero-skills-list .skill-pill {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .scroll-down {
        font-size: 0.7rem;
        gap: 5px;
    }
    
    .poster-tagline {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .cta-group-poster .btn-link {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}



/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar { padding: 20px; }
    
    .nav-links {
        display: none; /* Needs JS to toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block; 
        width: 30px;
    }
    
    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        margin-bottom: 6px;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .hero h1 { font-size: 3rem; }
    
    .btn-outline { margin-left: 0; margin-top: 15px; display: inline-flex; }
    
    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
/* About Poster Style */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 60px;
}

.display-medium {
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.image-frame-poster {
    width: 85%; /* Slightly smaller */
    aspect-ratio: 3/2; /* Landscape ratio */
    margin: 0 auto; /* Center it */
    background: #ccc;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

.image-frame-poster:hover {
    filter: grayscale(0%);
    transform: scale(0.98);
}

.image-frame-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-text p {
    font-size: 1.5rem;
    font-weight: 400; /* Regular weight for contrast with bold headers */
    line-height: 1.4;
    margin-bottom: 60px;
    max-width: 90%;
}

.stats-poster {
    display: flex;
    gap: 60px;
    border-top: 4px solid var(--text-primary);
    padding-top: 30px;
}

.stat-block {
    display: flex;
    flex-direction: column;
}

.stat-block .stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-block .stat-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .editorial-text p {
        font-size: 1.2rem;
    }
    
    .stats-poster {
        gap: 30px;
    }
    
    .stat-block .stat-number {
        font-size: 3.5rem;
    }
}


/* Skills Section */
.skill-category {
    margin-bottom: 50px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary); /* Changed to primary text color */
    padding-left: 0; /* Removed padding */
    background: none; /* Removed background */
    border-left: none; /* Removed border */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
    cursor: default;
    backdrop-filter: blur(5px);
}

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

/* Projects Section */
/* Projects Section Brutalist */
/* Projects Section Brutalist */
/* Projects Section Brutalist */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns ALWAYS */
    gap: 15px; /* Tighter gap */
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent grid itself from overflowing */
}

/* Remove responsive behavior for columns as requested */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px; /* Tiny gap on mobile */
    }
}

.project-card {
    background: var(--surface-color);
    padding: 20px;
    border: 1px solid var(--text-primary);
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    min-width: 0; /* CRITICAL: Allows grid item to shrink below content size */
    overflow: hidden; /* Safety net clip */
}

/* Mobile specific overrides to fit 3 cols */
@media (max-width: 600px) {
    .project-card {
        padding: 8px; /* Minimal padding for tiny columns */
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 var(--text-primary);
    transition: var(--transition-smooth); /* Ensure smooth hover */
}

/* Special Tools Card Styling */
.tools-card {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%) !important;
    border: 2px solid #ffa500 !important;
    position: relative;
    overflow: visible;
}

.tools-card::before {
    content: 'WIP';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffa500;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    z-index: 10;
}

.tools-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 8px 8px 0 #ffa500;
    border-color: #ff8c00 !important;
}

.tools-image {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%) !important;
    border: 2px solid #ffa500 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.tools-icon {
    font-size: 4rem;
    animation: toolsIconFloat 3s ease-in-out infinite;
}

@keyframes toolsIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.tools-card:hover .tools-icon {
    animation: toolsIconSpin 0.6s ease-in-out;
}

@keyframes toolsIconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Mobile responsive for tools icon */
@media (max-width: 600px) {
    .tools-icon {
        font-size: 2.5rem;
    }
    
    .tools-card::before {
        font-size: 0.5rem;
        padding: 2px 5px;
    }
}


.project-image {
    width: 100%;
    aspect-ratio: 2/1; 
    overflow: hidden;
    border: 1px solid var(--text-secondary);
    margin-bottom: 15px;
    position: relative;
    background: #000;
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
    filter: grayscale(0%);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1); /* Ultra smooth image transitions */
}

.project-overlay {
    display: none;
}

.project-info {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow flex child to shrink */
}

.project-title {
    font-size: 1.2rem; /* Reduce further for safety */
    font-weight: 800;
    margin-bottom: 8px;
    background: none;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    word-break: break-word; /* Prevent long words from blowing out width */
    hyphens: auto;
}

/* Adjust title for Mobile 3-col */
@media (max-width: 600px) {
    .project-title {
        font-size: 0.8rem; /* Tiny text for tiny columns */
        margin-bottom: 4px;
    }
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 15px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    border-radius: 50px; /* Pill shapes for contrast or 0 for brutalist? Keeping pill for tag separation */
}

/* Brutalist Link Styles */
.project-link, .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 4px;
    transition: var(--transition-smooth); /* Smooth all properties */
    cursor: pointer;
    align-self: flex-start;
}

.project-link:hover, .btn-link:hover {
    color: var(--bg-color);
    background: var(--text-primary);
    padding: 4px 10px;
    border-color: transparent;
}


.project-link i, .btn-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i, .btn-link:hover i {
    transform: translateX(5px);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links .icon-.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
}

.project-links .icon-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 2px;
}

.project-links .icon-link:hover {
    color: var(--accent-primary);
}

/* Poster Bottom Center */
.poster-bottom-center {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: 20px;
    padding-bottom: 20px;
}

.scroll-down {
    order: -1; /* Put scroll arrow on top of this group if needed, or keeping it plain */
    margin-bottom: 20px;
}

.poster-tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Meta Labels */
.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Contact Section & Forms */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details li {
    margin-bottom: 30px;
    list-style: none; /* Ensure no bullets */
}

.contact-details .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-details .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.contact-details .value:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    padding: 0 5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Form Styles - Brutalist & Small */
.contact-form {
    max-width: 400px; /* Bikin kecil aja */
    width: 100%;
    margin-left: auto; /* Push to right if grid allows, or just align */
    background: transparent;
    padding: 0;
    border: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-color);
    border: 2px solid var(--text-secondary); /* Solid border */
    border-radius: 0; /* No radius */
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-color);
    box-shadow: 4px 4px 0 var(--text-primary);
}

.contact-form .btn {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-color); /* Correct button color */
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .about-container .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Timeline / Education */
/* Timeline Minimalist Centered */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center; /* Center alignment */
}

/* Timeline Minimalist Centered Hybrid */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center; /* Center alignment */
}

/* Restore the line */
.timeline::after {
    display: block;
    content: '';
    position: absolute;
    width: 2px;
    background: var(--text-primary); /* Solid line */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Centered Line */
}

.timeline-item::after {
    display: none; 
}

.timeline-item {
    padding: 0; /* Removed padding */
    margin-bottom: 80px;
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: none; /* Disable lift effect */
}

.date-badge {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 50px;
    font-family: var(--font-mono);
}

.timeline-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1; 
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: text-shadow 0.3s ease;
}

/* Hover Effect: Text Glow */
.timeline-item:hover .timeline-title {
    text-shadow: 0 0 20px rgba(0,0,0,0.5); /* Glow effect */
    transform: scale(1.02);
}

body:not(.light-mode) .timeline-item:hover .timeline-title {
    text-shadow: 0 0 20px rgba(255,255,255,0.8); /* Glow for dark mode */
}

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

.timeline-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto; /* Center description */
}

.timeline-item:hover::after {
    background-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    transform: scale(1.2);
    transition: var(--transition-smooth); /* Smooth transform */
}

.timeline-content {
    padding: 30px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--accent-secondary);
    background: var(--surface-hover);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text; /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
/* Timeline Minimalist */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--text-primary);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 0 0 60px 50px;
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after { /* The dot */
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 13px;
    background-color: var(--bg-color);
    border: 3px solid var(--text-primary);
    top: 6px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background-color: var(--text-primary);
    transform: scale(1.3);
}

.timeline-content {
    background: transparent;
    border: none;
    padding: 0;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(10px);
}

.date-badge {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.timeline-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.timeline-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-desc {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 600px;
    border-left: 2px solid var(--text-secondary);
    padding-left: 20px;
}

/* Footer Poster */
.footer-poster {
    background: var(--bg-color);
    padding: 120px 0 80px 0; /* Added bottom padding */
    color: var(--text-primary);
    border-top: 2px solid var(--text-primary);
    overflow: hidden;
}

.footer-poster-grid {
    display: flex;
    justify-content: flex-end;
    gap: 100px;
    margin-bottom: 80px;
}

.fp-col h4 {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.footer-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-vertical a, .footer-email {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1;
}

.footer-links-vertical a:hover, .footer-email:hover {
    color: var(--text-secondary);
    transform: translateX(-10px);
    display: inline-block;
}

.copyright {
    margin-top: 40px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-big-text {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.footer-big-text h2 {
    font-size: clamp(3.5rem, 10vw, 7rem); /* Match Hero heading */
    line-height: 0.9; /* Match Hero */
    text-transform: uppercase;
    font-weight: 900; /* Match Hero */
    margin: 0;
    letter-spacing: -0.04em; /* Match Hero */
    color: var(--text-primary);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-poster-grid {
        flex-direction: column;
        justify-content: flex-start;
        gap: 40px;
    }
    
    .footer-links-vertical a, .footer-email {
        font-size: 1.5rem;
    }
}

/* --- Final Refinements for Education --- */
/* Overriding previous timeline styles to ensure correct look */
.date-badge {
    display: inline-block;
    padding: 8px 24px;
    background: var(--text-primary);
    color: var(--bg-color);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.timeline-title {
    font-size: 1.5rem !important; /* Force smaller size */
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--text-primary);
    background: var(--bg-color);
    display: inline-block;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.timeline-subtitle {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    background: var(--bg-color);
    display: inline-block;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.timeline-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   ======================================== */

/* Tablet & Below (992px) - Already has Hero rules above */
@media (max-width: 992px) {
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .image-frame-poster {
        margin: 0 auto;
        width: 70%;
        max-width: 400px;
    }
    
    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-details {
        text-align: center;
    }
    
    /* General Section Padding */
    .section {
        padding: 80px 30px;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    /* Global Section Padding */
    .section {
        padding: 60px 20px;
    }
    
    /* Projects - Reduce to 2 columns (from forced 3) */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .project-card {
        padding: 12px;
    }
    
    .project-title {
        font-size: 0.95rem;
    }
    
    .project-image {
        margin-bottom: 12px;
    }
    
    /* Section Titles */
    .section-title,
    .display-medium {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 40px;
    }
    
    /* Footer */
    .footer-big-text h2 {
        font-size: clamp(2.5rem, 8vw, 5rem);
        line-height: 1;
    }
    
    .footer-poster {
        padding: 80px 20px 60px 20px;
    }
    
    /* Timeline */
    .timeline {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .timeline-item {
        margin-bottom: 50px;
    }
    
    .timeline-title {
        font-size: 1.3rem !important;
    }
    
    .timeline-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    /* Hero - Extra Compact */
    .display-text {
        font-size: clamp(2.5rem, 9vw, 4rem) !important;
        line-height: 1;
    }
    
    .poster-container {
        padding: 50px 15px 25px 15px !important; /* Reduced top padding for small screens */
        gap: 12px !important;
    }
    
    .meta-label {
        font-size: 0.65rem;
    }
    
    .meta-value {
        font-size: 0.85rem;
    }
    
    /* Projects - Single Column */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .project-card {
        padding: 18px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    /* Skills Pills - Smaller */
    .hero-skills-list {
        gap: 8px;
    }
    
    .hero-skills-list .skill-pill {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }
    
    /* Section Padding */
    .section {
        padding: 50px 15px;
    }
    
    /* Navbar - Smaller */
    .navbar {
        top: 10px;
        right: 15px;
        padding: 8px;
    }
    
    /* Section Titles */
    .section-title,
    .display-medium {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer-big-text h2 {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .footer-poster {
        padding: 60px 15px 50px 15px;
    }
    
    /* Timeline */
    .timeline-title {
        font-size: 1.1rem !important;
    }
    
    .timeline-subtitle {
        font-size: 0.85rem !important;
    }
    
    .timeline-desc {
        font-size: 0.8rem;
    }
}
