@import url('./navbar.css');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Poppins&display=swap');

@property --radius {
    syntax: '<length>';
    inherits: false;
    initial-value: 100px;
}

/* ==========================================================================
   Global Styles & Document Setup
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1A1A1A;
    color: #fff;
    overflow: hidden;
    /* Lock scroll until preloader finishes */
    cursor: default;
    /* Disable text selection by default */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Standard */
}

/* Re-enable text selection only for input fields */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* --- Custom Scrollbar for WebKit Browsers --- */
::-webkit-scrollbar {
    width: 0.625rem;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 0.3rem;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Preloader
   ========================================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1A1A1A;
    z-index: 10000;
    display: grid;
    place-items: center;
    pointer-events: all;
    transition: opacity 0.5s ease-in-out;
}

#loading-screen,
#welcome-screen {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    width: 100%;
    text-align: center;
}

#loading-screen {
    opacity: 1;
}

#loading-screen p {
    font-size: 1rem;
    letter-spacing: 0.125em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.loading-bar {
    width: 12.5rem;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform-origin: left;
    animation: loading-anim 1.5s infinite linear;
}

#welcome-screen {
    opacity: 0;
    transform: scale(0.8);
}

#welcome-screen h1 {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 0.5rem;
}

#welcome-screen .logo-straight,
#welcome-screen .logo-cursive {
    font-size: 5rem;
}

#welcome-screen h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

/* --- Base Layout --- */
.navbar {
    opacity: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

#theme-toggle-btn,
#hamburger-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}


#hamburger-btn {
    z-index: 1001;
}

#theme-toggle-btn svg {
    pointer-events: none;
}

/* ==========================================================================
   Animations & Triggers
   ========================================================================== */

/* --- Triggers for elements animating on page load --- */
body.loaded #loading-screen {
    animation: fadeOut 0.5s forwards;
}

body.loaded #welcome-screen {
    animation: fadeIn 0.7s forwards 0.5s;
}

body.loaded #preloader {
    animation: fadeOut 0.5s forwards 2s;
}

/* Grouped selector for all float-in elements */
body.loaded .navbar,
body.loaded .hero-text,
body.loaded .hero-bottom-info {
    animation: floatIn 0.8s ease-out forwards;
}

/* Stagger the float-in with individual delays */
body.loaded .navbar {
    animation-delay: 2.5s;
}

body.loaded .hero-text {
    animation-delay: 2.8s;
}

body.loaded .hero-bottom-info {
    animation-delay: 3.1s;
}


/* --- Keyframe Definitions --- */
@keyframes loading-anim {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

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

/* --- Theme Change Animations --- */

/* 1. The Loading Spinner */
#image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    /* The spinning part of the circle */
    border-radius: 50%;
    z-index: 20;
    transform: translate(-50%, -50%);
    animation: spin 1s infinite linear;
}

#image-loader.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 2. The Ripple Effect */
#ripple-effect {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 20;
    opacity: 0.5;
}

#ripple-effect.animate {
    animation: ripple 0.8s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(25);
        opacity: 0;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* --- Main Container --- */
.hero {
    position: relative;
    width: 100%;
    cursor: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 6rem 1rem 4rem 1rem;
    overflow: hidden;
}

/* --- Background Image & Reveal Layer --- */
.hero-image,
.reveal-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reveal-layer {
    background: url('../assets/images/my-photo.png') no-repeat center center / cover;
    mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), white 100%, transparent 101%);
    -webkit-mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), white 100%, transparent 101%);
    pointer-events: none;
    animation: pulse 4s infinite ease-in-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes pulse {

    0%,
    100% {
        --radius: 6.25rem;
    }

    50% {
        --radius: 9.375rem;
    }
}

.custom-cursor {
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: url('../assets/icons/view-icon.png') no-repeat center center / contain;
    pointer-events: none;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    z-index: 1000;
}

/* --- Hero Content --- */
.hero-text,
.hero-bottom-info {
    opacity: 0;
    z-index: 5;
    position: relative;
}

.hero-text {
    color: white;
    text-align: center;
    text-shadow: 0.1875rem 0.1875rem 0.5rem rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
}

.hero-text h2 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
}

.hero-bottom-info {
    width: 100%;
    max-width: 2400px;
    padding: 0 2rem;
    box-sizing: border-box;
    gap: 5rem;
    display: flex;
    justify-content: space-between;
    text-shadow: 0.1875rem 0.1875rem 0.5rem rgba(0, 0, 0, 0.9);
    align-items: center;
    color: #fff;
    font-family: monospace;
    font-size: 1.1rem;
    margin-top: auto;
}

.hero-bottom-info p {
    text-align: center;
    max-width: 50%;
}

/* ==========================================================================
   About Section
   ========================================================================== */

#about {
    background-color: #1A1A1A;
    color: #fff;
    padding: 8rem 2rem;
    min-height: 80vh;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-container {
    max-width: 2000px;
    width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.about-title {
    flex: 0 0 9rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.about-description {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 0;
}

/* --- Stats Bar --- */
.stats-container {
    max-width: 2000px;
    width: 90%;
    margin: 6rem auto 0 auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 8rem;
    text-align: center;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4A90E2;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-family: monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* --- Staggered "About" Animation --- */
.stats-container .animate-on-scroll:nth-child(1) {
    transition-delay: 0.2s;
}

.stats-container .animate-on-scroll:nth-child(2) {
    transition-delay: 0.3s;
}

.stats-container .animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}

.stats-container .animate-on-scroll:nth-child(4) {
    transition-delay: 0.5s;
}

.stats-container .animate-on-scroll:nth-child(5) {
    transition-delay: 0.6s;
}


/* ==========================================================================
   Scroll Animations (Shared)
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==========================================================================
   Timeline Section
   ========================================================================== */

#timeline {
    position: relative;
    padding: 8rem 2rem;
    background-color: #1A1A1A;
    box-sizing: border-box;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.section-header p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* --- Timeline Structure --- */
.timeline-container {
    position: relative;
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.15);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    box-sizing: border-box;
    padding: 0 2.5rem;
    margin-bottom: 3rem;
}

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

/* This correctly creates the alternating layout */
.timeline-item:nth-child(odd) {
    align-self: flex-start;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
}

/* --- Timeline Content Card --- */
.timeline-content {
    padding: 1.5rem 2rem;
    background: rgba(42, 42, 42, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    position: relative;
    min-width: unset;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    color: #4A90E2;
    font-family: monospace;
}

.timeline-content .timeline-company {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.6rem;
}

/* --- Timeline Dot & Year --- */
.timeline-dot {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #4A90E2;
    border: 0.25rem solid #1A1A1A;
    top: 1.25rem;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px #4A90E2, 0 0 20px #4A90E2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -0.825rem;
    /* (width / 2) */
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -0.825rem;
    /* (width / 2) */
}

.timeline-year {
    position: absolute;
    top: 3.5rem;
    width: 6rem;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    text-align: center;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -3rem;
    /* (width / 2) */
}

.timeline-item:nth-child(even) .timeline-year {
    left: -3rem;
    /* (width / 2) */
}

.sparkle-icon {
    width: 1em;
    height: auto;
    vertical-align: middle;
    margin-left: 0.5rem;
    position: relative;
    top: -0.1em;
}

/* ==========================================================================
   Works Section
   ========================================================================== */

#works {
    position: relative;
    color: #333;
    border-top: 1px solid #ccc;
    background-color: #f0f0f0;
}

/* --- Works Header --- */
.works-sticky-header {
    height: 60vh;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 0.2rem, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0.2rem, transparent 1px);
    background-size: 4rem 4rem, 4rem 4rem, auto;
}

.works-title {
    font-family: 'Oswald', sans-serif;
    font-size: 12vw;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.works-header-static-content {
    position: absolute;
    bottom: 2.5rem;
    width: 90%;
    max-width: 1500px;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.works-section-label {
    font-family: monospace;
    font-size: 1.2rem;
    color: #888;
}

.works-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    max-width: 65%;
    text-align: right;
}

/* --- Scrolling Content (Showcase Area) --- */
.works-content {
    position: relative;
    background-color: #f0f0f0;
    padding: 8rem 0;
}

.product-showcase {
    max-width: 2000px;
    width: 85%;
    margin: 0 auto 6rem auto;
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    border-radius: 1rem;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    background-size: auto, auto, auto;
    background-blend-mode: soft-light, multiply, normal;
}

.showcase-info {
    flex: 1 1 40%;
    max-width: 40%;
    z-index: 2;
}

.showcase-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2c2c2c;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.showcase-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.project-tags span {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.05);
    color: #777;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin: 0 0.6rem 0.6rem 0;
    font-family: monospace;
}

.showcase-image-container {
    flex: 1 1 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 25rem;
    perspective: 75rem;
}

/* --- 3D Wrapper for Images --- */
.image-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

/* --- Web App Showcase Styles --- */
.web-app-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.web-app-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease-in-out;
}

.web-app-wrapper img.hidden {
    opacity: 0;
    pointer-events: none;
}

.image-nav {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    backdrop-filter: blur(0.3rem);
    z-index: 10;
}

.image-nav button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
}

.image-dots {
    display: flex;
    gap: 0.5rem;
}

.image-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-dots .dot.active {
    background-color: #fff;
}

/* --- Mobile App Showcase Styles --- */
.mobile-app-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-app-wrapper img {
    position: absolute;
    width: 30%;
    max-width: 11.25rem;
    height: auto;
    border-radius: 1.125rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease-in-out;
}

/* Layering and positioning the mobile screens */
.mobile-img-front {
    transform: translateZ(3rem) translateX(60%) rotate(10deg);
    z-index: 3;
}

.mobile-img-mid {
    transform: translateZ(1.5rem) translateX(0%) rotate(-5deg);
    z-index: 2;
}

.mobile-img-back {
    transform: translateZ(0px) translateX(-60%) rotate(5deg);
    z-index: 1;
}

/* --- CTA Button for Showcase --- */
.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #4A90E2;
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #357ABD;
}

/* ==========================================================================
   Quote Section
   ========================================================================== */

.quote-page {
    height: 100vh;
    background-color: #1A1A1A;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.quote-container {
    max-width: 2000px;
    width: 90%;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Base styles for all quote lines */
.quote-line {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* --- Individual Line Styling --- */

/* Line 1: "A promise," */
.quote-1 {
    font-size: 2.5rem;
    font-family: monospace;
    text-transform: none;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20vh;
}

/* Line 2: "Woven With Style," */
.quote-2 {
    font-size: 8vw;
    line-height: 1.1;
    text-align: right;
    color: #4A90E2;
    letter-spacing: -0.06em;
}

.quote-2 span {
    display: block;
}

/* Line 3: "Finds Rhythm" */
.quote-3 {
    font-size: 8vw;
    line-height: 1.1;
    text-align: left;
    color: #fff;
    letter-spacing: 0.1em;
    margin-bottom: 30vh;
}

/* Line 4: "In Script." */
.quote-4 {
    font-size: 8vw;
    line-height: 1.4;
    text-align: center;
    color: #4A90E2;
    letter-spacing: -0.06em;
}

/* --- Animation Setup --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   Contact Section
   ========================================================================== */
#contact {
    padding: 4rem 2rem;
    background-color: #1A1A1A;
    color: #fff;
}

.contact-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
}

#contact h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

#contact p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    line-height: 1.6;
}

#contact p a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: bold;
}

/* --- Form Styling --- */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.form-group {
    width: 100%;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

#contact button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #4A90E2;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #357ABD;
}


/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
    background-color: #111;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: monospace;
    font-size: 1rem;
}

.footer-container {
    max-width: 2000px;
    width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #fff;
}

.footer-logo .logo-straight,
.footer-logo .logo-cursive {
    font-size: 1.5rem;
}

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

.social-links svg {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
}

/* --- Footer Social Link Tooltips --- */
.social-links a {
    position: relative;
    font-size: 1.2rem;
}

.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.4rem 0.2rem;
    border-radius: 0.3rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-links a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* --- For 4K & Very Large Screens (2000px and up) --- */
@media (min-width: 2000px) {

    /* --- General --- */
    html {
        font-size: 34px;
    }

    /* --- Hero Section --- */
    @keyframes pulse {

        0%,
        100% {
            --radius: 200px;
        }

        50% {
            --radius: 300px;
        }
    }
}

/* --- For Laptops & Desktops (1440px and down) --- */
@media (max-width: 1440px) {
    html {
        font-size: 18px;
    }

    /* --- Hero Section --- */
    @keyframes pulse {

        0%,
        100% {
            --radius: 100px;
        }

        50% {
            --radius: 160px;
        }
    }

    /*-- Contact Section ---*/
    #contact {
        padding: 2rem 2rem;
    }

    #contact p {
        margin-bottom: 2rem;
    }

    #contact form {
        gap: 0.5rem;
    }
}

/* --- For Standard Laptops & Desktops (1024px and down) --- */
@media (max-width: 1024px) {

    html {
        font-size: 16px;
    }

    /* --- Navbar --- */
    #hamburger-btn,
    #theme-toggle-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 5.6rem;
        right: 3rem;
        width: 50%;
        max-width: 250px;
        max-height: 0;
        box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.8);
        background-color: rgba(28, 28, 28, 0.95);
        border-radius: 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    .nav-links.active {
        max-height: 30rem;
        padding: 2rem 0;
    }

    .nav-links a {
        padding: 0.5rem 5rem;
    }

    #nav-links-list {
        gap: 1.5rem;
    }

    /* --- Hero Section --- */
    .reveal-layer,
    .custom-cursor {
        display: none;
    }

    .hero-bottom-info {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }


    .hero-bottom-info p {
        max-width: 80%;
        font-size: 1rem;
    }

    /* --- About Section --- */
    .stats-container {
        max-width: 90%;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex-basis: 30%;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /*-- Footer Section ---*/
    #footer {
        padding: 1rem 0;
    }
}


/* --- For Tablets (768px and down) --- */
@media (max-width: 768px) {

    /* --- General Adjustments --- */
    html {
        font-size: 15px;
    }

    /* --- Hero Section --- */
    .hero {
        padding: 10rem 1rem 2rem 1rem;
    }

    .hero-text {
        padding: 0;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .hero-bottom-info p {
        max-width: 90%;
        font-size: 1rem;
    }

    /* --- Timeline Section --- */
    .timeline-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .timeline-container::after {
        left: 2.2rem;
    }

    .timeline-content {
        min-width: unset;
        padding: 1.5rem 1rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-year {
        font-size: 0.9rem;
        width: 5rem;
    }

    timeline-container::after {
        left: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        width: 100%;
        align-self: flex-end;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: calc(1rem - 10px);
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: -1.5rem;
        text-align: center;
        transform: none;
        white-space: nowrap;
    }

    /* --- Works Carousel --- */
    .product-showcase {
        max-width: 100%;
        height: auto;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1.5rem;
        margin: 0 auto 0.5rem auto;
    }

    .showcase-info {
        max-width: 100%;
        text-align: center;
        height: 100%;
        width: 100%;
    }

    .showcase-image-container {
        max-width: 100%;
        text-align: center;
        height: 80%;
        width: 100%;
    }

    .showcase-info h3 {
        font-size: 2.5rem;
    }

    .project-tags {
        justify-content: center;
    }

    /* --- Quote Section --- */
    .quote-page {
        height: 80vh;
    }

    /* --- Footer Section --- */
    /* --- Footer: Stacked Layout --- */
    #footer {
        display: flex;
        padding: 0.5rem 0;
    }

    .footer-container {
        max-width: 100%;
        gap: 1.5rem;
    }

    .footer-logo {
        order: -1;
    }

    .footer-left,
    .footer-right {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* --- For All Mobile Devices (425px and down) --- */
@media (max-width: 425px) {

    /* --- General Adjustments --- */
    html {
        font-size: 13px;
    }

    /* --- Hero Section --- */
    .hero-bottom-info p {
        max-width: 100%;
        font-size: 1rem;
    }

    /* --- Works Section --- */
    .product-showcase {
        max-width: 80%;
    }

    /* --- Quote Section --- */
    .quote-2,
    .quote-3,
    .quote-4 {
        font-size: 8vh;
    }

    /* --- Contact Section ---*/
    #contact {
        padding: 1.2rem 1rem;
    }

    #contact p {
        margin-bottom: 1.5rem;
    }

    #contact form {
        gap: 1.2rem;
    }

    /* --- Footer Section --- */
    .footer-container {
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
    }

    .social-links a::after {
        font-size: 0.7rem;
        padding: 0.3rem 0.3rem;
    }
}

/* --- For All Mobile Devices (375px and down) --- */
@media (max-width: 375px) {

    /* --- General Adjustments --- */
    html {
        font-size: 12px;
    }
}

/* --- For All Mobile Devices (320px and down) --- */
@media (max-width: 320px) {

    /* --- General Adjustments --- */
    html {
        font-size: 11px;
    }
}

/* --- Gritty Texture Overlay --- */
/* .gritty-overlay {
    position: fixed; Covers the entire screen */
/* top: -5vh;
    left: -5vw;
    width: 110vw;
    height: 110vh; */

/* This prevents the overlay from blocking clicks */
/* pointer-events: none;  */

/* Ensures it's on top of all other content */
/* z-index: 9999;  */

/* Adjust for intensity (e.g., 0.05 for subtle, 0.15 for strong) */
/* opacity: 0.10;  */

/* A seamless, repeating noise texture embedded in the CSS */
/* background-image: url('../assets/images/gritty_texture.png');
    animation: noise-anim 0.05s infinite linear;
}

@keyframes noise-anim {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2%, 2%); }
    20% { transform: translate(2%, -2%); }
    30% { transform: translate(-2%, -2%); }
    40% { transform: translate(2%, 2%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-2%, -2%); }
    80% { transform: translate(2%, 2%); }
    90% { transform: translate(-2%, 2%); }
    100% { transform: translate(0, 0); }
} */