/* ========== BASIC RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0575e6;
    --primary-dark: #021b79;
    --text-color: #333333;
    --light-bg: #f4f5f7;
    --card-bg: #ffffff;
    --accent: #f97316;
    --transition: all 0.3s ease;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */

.navbar {
    background: #FFFFFF;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: #e5e7eb;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo img{
    height : 65px;
    width : 130px;
    display : block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #252525;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #E43636;
    transform: translateY(-2px);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    width: 32px;
    height: 3px;
    background: rgb(94, 65, 12);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.1s 0.3s ease-in-out;
}

.hamburger .bar {
    display: none;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgb(94, 65, 12);
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile navbar behaviour */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-container {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: -300px;
        flex-direction: column;
        background:#FFFFFF;
        width: calc(100% - 40px);
        margin: 0 20px;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        border-radius: 0 0 15px 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        z-index: 999;
    }

    .nav-menu.active {
        top: 70px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        margin: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .nav-menu a:last-child {
        border-bottom: none;
        border-radius: 0 0 15px 15px;
    }

    .nav_menu a:hover{
        background : rgba(255,255,255,0.1);
        transform : scale(1.05);
    }

      .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.1);
        z-index: -1;
        backdrop-filter: blur(2px);
        opacity: 1;
    }

    
    .nav-menu::before {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

      .nav-logo-img {
        height: 80px;   /* mobile par thoda chhota */
    }

}

/* ========== HERO SECTION ========== */

.periph-hero-banner {
    position: relative;
    background-image: url("peripherals.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    padding: 140px 0 80px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-align: center;
    opacity: 0.95;

}

.periph-hero-content {
    max-width: 720px;
}

.periph-hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.periph-hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* ========== PERIPHERALS LIST WITH IMAGES ========== */

.periph-list {
    margin-top: 30px;
    background: #4b65aa;
    padding: 70px 0 80px;
}

.periph-section-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2.5rem;
}

.hero-btn-wrapper {
    margin-top: 50px; /* Space between logos and button */
    animation: fadeInUp 1.2s ease; /* Fade in animation matching content */
    text-align: center;
}

.cad-hero-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    background: #ffd700;
    color: #041540;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}



.cad-hero-btn:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.periph-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.periph-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.periph-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.periph-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.periph-card h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin: 20px 15px 8px;
}


.periph-desc {
    font-size: 0.9rem;
    color: #666;
    padding: 0 15px 20px;
    line-height: 1.4;
    flex-grow: 1;
}



/* Hover effects */
.periph-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.periph-card:hover .periph-image {
    transform: scale(1.05);
}

/* Responsive grid */
@media (max-width: 1100px) {
    .periph-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .periph-image-container {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .periph-hero-banner {
        padding: 120px 0 60px;
    }

    .periph-hero-title {
        font-size: 2.1rem;
    }

    .periph-section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .periph-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .periph-image-container {
        height: 200px;
    }

    .periph-hero-banner {
        padding: 110px 0 50px;
    }

    .periph-hero-title {
        font-size: 1.9rem;
    }

    .periph-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .periph-image-container {
        height: 180px;
    }

    .periph-card h3 {
        font-size: 1rem;
    }

    .periph-desc {
        font-size: 0.85rem;
    }

    .nav-logo-img{
        height : 60px;
    }
}

/* ========== FOOTER ========== */

.footer {
    background: #0F0E0E;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #dcdcdc;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffb700;
}

.footer-bottom {
    border-top: 1px solid #555555;
    padding-top: 2rem;
    text-align: center;
    color: #cccccc;
}

.dvp {
    color: #ffeb3b;
    text-decoration: none;
}

/* Generic anchor reset */
a {
    text-decoration: none;
}