/*
==============================================
TABLE OF CONTENTS
==============================================
1. Global Styles & Reset
2. Common Components (Navbar, Footer)
3. Home Page Styles
4. About Page Styles
5. PC Builder Page Styles
6. Contact Page Styles
7. Responsive Styles
8. Animations
==============================================
*/

/*
==============================================
1. GLOBAL STYLES & RESET
==============================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A;
    color: #FFFFFF;
}

a {
    text-decoration: none;
}

button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

/*
==============================================
2. COMMON COMPONENTS - NAVBAR & FOOTER
==============================================
*/

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 120px;
    background: #111111;
    height: 73px;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    max-width: 230px;
}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-image img,
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    white-space: nowrap;
    background-image: linear-gradient(90deg, #4318D1 0%, #c850c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 10px;
}

.logo-text a {
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(90deg, #4318D1 0%, #c850c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 46px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    transition: color 0.3s ease;
}

.nav-links a.active, .nav-links a:hover {
    color: #4318D1;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    position: relative;
}

/* Footer */
.footer {
    background-color: #111111;
    padding: 80px 120px 82px;
    position: relative;
    width: 100%;
    height: 438px;
    opacity: 0;
    animation: footerSlideUp 0.8s ease-out forwards;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 140px;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 194px;
    opacity: 0;
    animation: footerSlideUp 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-brand p {
    font-size: 18px;
    line-height: 26px;
    color: #888888;
}

.footer-section {
    opacity: 0;
    animation: footerSlideUp 0.6s ease-out forwards;
}

.footer-section:nth-of-type(1) { animation-delay: 0.4s; }
.footer-section:nth-of-type(2) { animation-delay: 0.5s; }
.footer-section:nth-of-type(3) { animation-delay: 0.6s; }
.footer-section:nth-of-type(4) { animation-delay: 0.7s; }

.footer-section h4 {
    font-size: 19px;
    font-weight: 500;
    line-height: 29px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.footer-section a {
    display: block;
    font-size: 18px;
    line-height: 26px;
    color: #888888;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4318D1;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #222222;
    width: 1032px;
    margin: 0 auto;
    opacity: 0;
    animation: footerSlideUp 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

.copyright p {
    font-size: 18px;
    line-height: 26px;
    color: #888888;
}

/*
==============================================
3. HOME PAGE STYLES
==============================================
*/

/* Hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 120px;
    position: relative;
}

.hero-content {
    max-width: 449px;
    animation: fadeIn 1s ease-out forwards;
}

.hero h1 {
    font-weight: 700;
    font-size: 64px;
    line-height: 80px;
    margin-bottom: 35px;
}

.gradient-text {
    display: block;
    background-image: linear-gradient(90deg, #4318D1 0%, #c850c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtext {
    font-size: 22px;
    line-height: 34px;
    color: #888888;
    margin-bottom: 45px;
}

.cta-button {
    display: inline-block;
    background: #4318D1;
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    padding: 24px 46px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    width: 217px;
    height: 77px;
}

.cta-button:hover {
    background: #5429E2;
    transform: translateY(-3px);
}

.hero-image {
    width: 452px;
    height: 339px;
    background-color: #4318D1;
    filter: drop-shadow(0px 0px 60px rgba(67, 24, 209, 0.3));
    border-radius: 24px;
    margin-left: 101px;
    animation: fadeIn 1.2s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Features Section */
.features {
    padding: 70px 120px 160px;
    text-align: center;
}

.features h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 72px;
    margin-bottom: 64px;
    text-align: center;
    width: 523px;
    margin-left: auto;
    margin-right: auto;
}

.cards {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.card {
    background-color: #111111;
    width: 312px;
    height: 392px;
    padding: 32px;
    border-radius: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(67, 24, 209, 0.15);
}

.card:nth-child(1) { animation: slideUp 0.6s ease-out 0.1s forwards; }
.card:nth-child(2) { animation: slideUp 0.6s ease-out 0.3s forwards; }
.card:nth-child(3) { animation: slideUp 0.6s ease-out 0.5s forwards; }

.card-image {
    width: 248px;
    height: 165px;
    background-color: #333;
    border-radius: 16px;
    margin-bottom: 23px;
}

.cpu-image, .gpu-image, .memory-image {
    background-color: #333;
}

.card h3 {
    font-size: 29px;
    font-weight: 500;
    line-height: 43px;
    margin-bottom: 18px;
}

.card p {
    font-size: 18px;
    line-height: 26px;
    color: #888888;
    width: 100%;
    word-wrap: break-word;
}

/*
==============================================
4. ABOUT PAGE STYLES
==============================================
*/

/* About Hero Section */
.about-hero {
    padding: 128px 120px 48px;
}

.about-hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 96px;
    color: #FFFFFF;
    margin-bottom: 51px;
    animation: fadeIn 0.8s ease forwards;
}

/* About Content Section */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 128px;
}

.about-text {
    max-width: 449px;
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.about-paragraph {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 34px;
    color: #888888;
    margin-bottom: 32px;
}

.about-image {
    width: 452px;
    height: 339px;
    background-color: #4318D1;
    filter: drop-shadow(0px 0px 60px rgba(67, 24, 209, 0.3));
    border-radius: 24px;
    animation: fadeIn 1.2s ease-out 0.5s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* About Features Section */
.about-features {
    display: flex;
    justify-content: space-between;
    padding: 70px 120px 128px;
    gap: 48px;
}

.about-card {
    background-color: #111111;
    width: 312px;
    height: 355px;
    padding: 32px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
    animation-fill-mode: forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.3s; }
.about-card:nth-child(3) { animation-delay: 0.5s; }

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(67, 24, 209, 0.15);
}

.about-card-image {
    width: 160px;
    height: 160px;
    background-color: #333;
    border-radius: 50%;
    margin-bottom: 24px;
    transition: transform 0.5s ease;
}

.about-card:hover .about-card-image {
    transform: scale(1.05);
}

.about-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 38px;
    color: #FFFFFF;
    margin-bottom: 18px;
}

.about-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #888888;
    max-width: 246px;
}

/*
==============================================
5. PC BUILDER PAGE STYLES
==============================================
*/

/* PC Builder Hero Section */
.pcb-hero {
    padding: 128px 120px 48px;
}

.pcb-hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 96px;
    color: #FFFFFF;
    animation: fadeIn 0.8s ease forwards;
}

/* PC Builder Section */
.pcb-section {
    display: flex;
    justify-content: space-between;
    padding: 0 120px 128px;
    gap: 128px;
}

/* Component Selectors */
.component-selectors {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 452px;
}

.component-card {
    background: #111111;
    border-radius: 24px;
    padding: 32px;
    height: 169px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(67, 24, 209, 0.2);
}

.component-selectors .component-card:nth-child(1) { animation-delay: 0.1s; }
.component-selectors .component-card:nth-child(2) { animation-delay: 0.2s; }
.component-selectors .component-card:nth-child(3) { animation-delay: 0.3s; }
.component-selectors .component-card:nth-child(4) { animation-delay: 0.4s; }
.component-selectors .component-card:nth-child(5) { animation-delay: 0.5s; }
.component-selectors .component-card:nth-child(6) { animation-delay: 0.6s; }
.component-selectors .component-card:nth-child(7) { animation-delay: 0.7s; }

.component-card label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 34px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.component-select {
    width: 388px;
    height: 55px;
    background: #D9D9D9;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 21px;
    color: #000000;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D%228%22%20viewBox%3D%220%200%208%208%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M0%200L4%204L8%200L0%200Z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border 0.3s ease;
}

.component-select:focus {
    outline: 2px solid #4318D1;
}

/* Build Summary */
.build-summary {
    background: #111111;
    border-radius: 24px;
    padding: 22px;
    width: 452px;
    height: px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.build-summary h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 48px;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.component-summary {
    flex: 1;
    overflow-y: visible; /* Changed from hidden to visible */
    margin-bottom: 24px;
}

.component-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
    padding: 5px;
    border-radius: 4px;
    width: 100%;
    align-items: flex-start;
    transform: translateZ(0);
}

.component-row:hover {
    background-color: rgba(67, 24, 209, 0.05);
    transform: translateZ(0);
}

.component-type {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 29px;
    color: #FFFFFF;
    text-align: left;
    width: 45%;
}

.component-selected {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 29px;
    color: #888888;
    text-align: right;
    transition: color 0.3s ease;
    max-width: 55%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #222222;
    width: 100%;
    margin-top: auto;
    position: relative; /* Ensure proper positioning */
}

.price-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 34px;
    color: #FFFFFF;
    white-space: nowrap;
}

.total-price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    color: #FFFFFF;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: right;
}

/*
==============================================
6. CONTACT PAGE STYLES
==============================================
*/

/* Contact Hero Section */
.contact-hero {
    padding: 128px 120px 48px;
}

.contact-hero h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 96px;
    color: #FFFFFF;
    animation: fadeIn 0.8s ease forwards;
}

/* Contact Section with Form and Info */
.contact-section {
    display: flex;
    justify-content: space-between;
    padding: 0 120px 128px;
    gap: 128px;
}

.contact-form-container,
.contact-info-container {
    background: #111111;
    border-radius: 24px;
    padding: 48px;
    width: 452px;
    height: auto;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.contact-form-container {
    animation-delay: 0.2s;
}

.contact-info-container {
    animation-delay: 0.4s;
}

/* Form Styles */
.contact-form-container h2,
.contact-info-container h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 48px;
    color: #FFFFFF;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 29px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #222222;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 21px;
    color: #FFFFFF;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #4318D1;
}

.form-group input {
    height: 58px;
}

.form-group textarea {
    height: 200px;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.send-button {
    width: 100%;
    height: 61px;
    background: #4318D1;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 29px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.send-button:hover {
    background: #5429E2;
    transform: translateY(-3px);
}

/* Contact Info Styles */
.contact-info-container {
    min-height: 450px;
}

.info-group {
    margin-bottom: 30px;
    width: 100%;
}

.info-group h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 34px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.info-group p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 29px;
    color: #888888;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/*
==============================================
8. ANIMATIONS
==============================================
*/
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobileMenuDown {
    from { max-height: 0; opacity: 0; padding: 0; }
    to { max-height: 300px; opacity: 1; padding: 20px 0; }
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #C850C0; }
    100% { transform: scale(1); }
}

@keyframes footerSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
==============================================
7. RESPONSIVE STYLES
==============================================
*/

/* Desktop override to ensure elements display correctly */
@media (min-width: 992px) {
    /* Fix for desktop component display */
    .component-selected {
        max-width: 55%;
        text-align: right;
    }

    .component-row {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .price-summary {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .total-price, .price-label {
        white-space: nowrap !important;
    }

    .component-summary {
        overflow-y: visible !important;
        max-height: none !important;
    }
}

/* Desktop nav override */
@media (min-width: 577px) {
    .nav-links {
        display: flex !important;
        opacity: 1 !important;
        max-height: none !important;
        animation: none !important;
    }

    .nav-links a {
        opacity: 1 !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .card, .about-card, .component-card {
        opacity: 1 !important;
    }
}

/* Large devices */
@media (max-width: 1200px) {
    /* Common */
    .navbar {
        padding: 0 60px;
    }

    .hero, .features, .footer,
    .about-hero, .about-features,
    .pcb-hero, .pcb-section,
    .contact-hero, .contact-section {
        padding-left: 60px;
        padding-right: 60px;
    }

    .footer-content {
        gap: 80px;
    }

    .copyright {
        width: 100%;
    }

    /* Home */
    .cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-image {
        margin-left: 50px;
    }

    .features h2 {
        width: 100%;
    }

    /* About */
    .about-content {
        gap: 60px;
    }

    .about-image {
        width: 400px;
        height: 300px;
    }

    /* PC Builder */
    .pcb-section {
        gap: 60px;
    }

    /* Contact */
    .contact-section {
        gap: 60px;
    }
}

/* Medium devices */
@media (max-width: 992px) {
    /* Home */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .hero-image {
        width: 100%;
        max-width: 452px;
        margin-left: 0;
    }

    .subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .footer {
        height: auto;
    }

    .cta-button {
        margin: 0 auto;
    }

    .card {
        width: 100%;
        max-width: 312px;
        height: auto;
        min-height: 392px;
    }

    .card-image {
        width: 100%;
        max-width: 248px;
        height: auto;
        min-height: 165px;
        margin-left: auto;
        margin-right: auto;
    }

    /* About */
    .about-content {
        flex-direction: column;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image {
        width: 100%;
        max-width: 452px;
        margin-top: 32px;
    }

    .about-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-card {
        width: 100%;
        max-width: 312px;
    }

    /* PC Builder */
    .pcb-section {
        flex-direction: column;
        align-items: center;
    }

    .component-selectors,
    .build-summary {
        width: 100%;
        max-width: 600px;
    }

    .component-select {
        width: 100%;
    }

    .build-summary {
        height: 700px;
    }

    .component-summary {
        overflow-y: visible !important;
        max-height: none !important;
    }

    /* Contact */
    .contact-section {
        flex-direction: column;
        align-items: center;
    }

    .contact-form-container,
    .contact-info-container {
        width: 100%;
        max-width: 600px;
        height: auto;
    }

    .contact-info-container {
        margin-top: 48px;
    }
}

/* Small devices */
@media (max-width: 768px) {
    /* Common */
    .navbar {
        padding: 0 30px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero, .features, .footer,
    .about-hero, .about-features,
    .pcb-hero, .pcb-section,
    .contact-hero, .contact-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Home */
    .hero h1 {
        font-size: 48px;
        line-height: 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    /* About */
    .about-hero h1 {
        font-size: 48px;
        line-height: 72px;
    }

    .about-features {
        padding: 40px 30px 80px;
        gap: 30px;
    }

    /* PC Builder */
    .pcb-hero h1 {
        font-size: 48px;
        line-height: 72px;
    }

    .component-selected {
        max-width: 65%;
        white-space: normal;
        text-align: right;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .component-card {
        padding: 24px;
    }

    /* Contact */
    .contact-hero h1 {
        font-size: 48px;
        line-height: 72px;
    }
}

/* MOBILE MENU - specific handling */
@media (max-width: 576px) {
    .nav-links {
        display: none;
    }

    .nav-links.show-mobile {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 73px;
        left: 0;
        width: 100%;
        background: #111111;
        padding: 20px 0;
        z-index: 9;
        animation: mobileMenuDown 0.3s ease forwards;
    }

    .nav-links.show-mobile a {
        padding: 15px 24px;
        width: 100%;
        text-align: left;
        animation: fadeIn 0.3s ease forwards;
        opacity: 0;
    }

    .nav-links.show-mobile a:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.show-mobile a:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.show-mobile a:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.show-mobile a:nth-child(4) { animation-delay: 0.4s; }

    /* Common */
    .navbar {
        flex-direction: row;
        height: 73px;
        padding: 0 24px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo-container {
        margin-bottom: 0;
        max-width: 180px;
    }

    /* Footer */
    .footer {
        height: auto;
        padding: 64px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 55px;
        margin-bottom: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand p {
        max-width: 430px;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-section {
        width: 100%;
    }

    .social-links {
        display: flex;
        gap: 12px;
    }

    .copyright {
        width: 100%;
        padding-top: 32px;
        text-align: center;
    }

    .copyright p {
        max-width: 341px;
        margin: 0 auto;
    }

    /* Home */
    .hero {
        flex-direction: column;
        text-align: left;
        padding: 0;
    }

    .hero-content {
        padding: 128px 24px 45px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 36px;
        width: 100%;
        max-width: 393px;
    }

    .gradient-text {
        display: inline;
    }

    .subtext {
        font-size: 22px;
        line-height: 34px;
        margin-bottom: 45px;
        max-width: 398px;
    }

    .cta-button {
        width: 217px;
        height: 77px;
        padding: 24px 0;
        margin: 0;
    }

    .hero-image {
        width: 426px;
        height: 319px;
        margin: 128px 24px 0;
        max-width: calc(100% - 48px);
    }

    .features {
        padding: 100px 24px;
        text-align: center;
    }

    .features h2 {
        font-size: 48px;
        line-height: 72px;
        max-width: 289px;
        margin: 0 auto 64px;
    }

    .cards {
        flex-direction: column;
        gap: 48px;
        align-items: center;
    }

    .card {
        width: 426px;
        height: 441px;
        padding: 32px;
        max-width: 100%;
    }

    .card-image {
        width: 362px;
        height: 241px;
        max-width: 100%;
    }

    /* About */
    .about-hero {
        padding: 128px 24px 24px;
    }

    .about-hero h1 {
        font-size: 64px;
        line-height: 96px;
    }

    .about-content {
        flex-direction: column;
        gap: 32px;
    }

    .about-text {
        width: 100%;
    }

    .about-paragraph {
        font-size: 22px;
        line-height: 34px;
        max-width: 423px;
    }

    .about-paragraph:first-child {
        margin-bottom: 32px;
    }

    .about-image {
        width: 426px;
        height: 319px;
        max-width: 100%;
        margin: 125px auto 0;
    }

    .about-features {
        flex-direction: column;
        align-items: center;
        padding: 70px 24px 128px;
        gap: 48px;
    }

    .about-card {
        width: 426px;
        max-width: 100%;
    }

    .about-card p {
        max-width: 351px;
    }

    /* PC Builder */
    .pcb-hero {
        padding: 128px 24px 40px;
    }

    .pcb-hero h1 {
        font-size: 64px;
        line-height: 96px;
    }

    .pcb-section {
        padding: 0 24px 64px;
    }

    .component-row {
        flex-wrap: nowrap !important;
        margin-bottom: 16px !important;
    }

    .component-type {
        font-size: 19px !important;
        line-height: 29px !important;
        margin-bottom: 0 !important;
        width: 45% !important;
        text-align: left !important;
    }

    .component-selected {
        font-size: 19px !important;
        line-height: 29px !important;
        text-align: right !important;
        width: auto !important;
        max-width: 55% !important;
    }

    .component-card {
        height: auto;
        min-height: 169px;
        width: 100%;
        max-width: 426px;
        margin: 0 auto;
    }

    .component-card label {
        font-size: 22px;
    }

    .component-select {
        max-width: 362px;
        margin: 0 auto;
    }

    .build-summary {
        height: 780px !important;
    }

    .component-summary {
        overflow-y: visible !important;
        max-height: none !important;
    }

    .price-summary {
        padding-right: 8px;
    }

    .total-price {
        font-size: 24px;
        line-height: 36px;
    }

    /* Contact */
    .contact-hero {
        padding: 128px 24px 40px;
    }

    .contact-hero h1 {
        font-size: 64px;
        line-height: 96px;
    }

    .contact-section {
        padding: 0 24px 64px;
        gap: 70px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 48px 32px;
        width: 100%;
        max-width: 426px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-container {
        height: 778px;
    }

    .contact-info-container {
        height: 451px;
        margin-top: 128px;
    }

    .info-group p {
        font-size: 18px;
        line-height: 27px;
    }

    .form-group input,
    .form-group textarea {
        width: 330px;
        max-width: 100%;
    }

    .send-button {
        width: 330px;
        max-width: 100%;
        margin-top: 39px;
    }

}

/* Extra small devices */
@media (max-width: 576px) {
}

@media (max-width: 428px) {
    .contact-info-container {
        padding: 32px 16px !important;
        height: auto !important;
    }

    .info-group p {
        font-size: 16px !important;
        line-height: 24px !important;
        letter-spacing: -0.5px;
        width: 100% !important;
        word-break: break-all !important;
        white-space: normal !important;
    }

    .form-group input,
    .form-group textarea,
    .send-button {
        width: 100%;
    }
}

/* Very small devices - Galaxy S8+ / iPhone X */
@media (max-width: 375px) {
    /* Home */
    .hero h1 {
        font-size: 36px;
        line-height: 45px;
    }

    /* About */
    .about-hero h1 {
        font-size: 48px;
        line-height: 72px;
    }

    .about-paragraph {
        font-size: 20px;
        line-height: 30px;
    }

    .about-card {
        padding: 24px 16px;
    }

    .logo-container {
        max-width: 160px;
    }

    .logo-text {
        font-size: 18px;
        line-height: 24px;
        margin-left: 8px;
    }

    .logo-image {
        width: 28px;
        height: 28px;
    }

    /* PC Builder */
    .pcb-hero h1 {
        font-size: 48px;
        line-height: 72px;
    }

    /* Critical fix for price summary on small screens */
    .price-summary {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        flex-wrap: nowrap !important;
    }

    .component-type {
        font-size: 17px !important; /* Slightly smaller for better fit */
        text-align: left !important;
    }

    .component-selected {
        font-size: 17px !important; /* Slightly smaller for better fit */
        text-align: right !important;
    }

    .total-price {
        font-size: 28px !important; /* Slightly smaller for better fit */
        line-height: 38px !important;
    }

    .price-label {
        font-size: 20px !important; /* Slightly smaller for better fit */
    }

    .component-card,
    .build-summary {
        padding: 24px 16px;
    }

    .component-select {
        width: 100%;
    }

    /* Contact */
    .contact-hero h1 {
        font-size: 48px;
        line-height: 72px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 32px 24px;
    }

    .form-group input,
    .form-group textarea,
    .send-button {
        width: 100%;
    }
}
