/* style.css */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    /* Prevents horizontal shaking/scrolling on mobile */
    overflow-x: hidden; 
    width: 100%;
    position: relative;
}

html {
    overflow-y: scroll; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
}

h1, h2, h3 { font-family: "Times New Roman", Times, serif; }

/* NAVIGATION */
nav {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center; 
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- UPDATED LOGO & HOVER EFFECTS --- */

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    z-index: 1001;
    /* Smooth transition for the scale effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* The "Pop" effect when hovering the logo area */
.logo-area:hover {
    transform: scale(1.03);
}

.logo-area img { 
    height: 40px; 
    width: auto; 
    display: block;
    /* Smooth transition for brightness and rotation */
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Subtle glow and tilt for the image on hover */
.logo-area:hover img {
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(217, 119, 6, 0.2));
    transform: rotate(-3deg);
}

.logo-text { 
    margin-left: 0.75rem; 
    font-size: 1.5rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: -0.05em; 
    transition: color 0.3s ease; /* Smooth color swap */
}

/* Change the "Anoo" part of the text on hover */
.logo-area:hover .logo-text {
    color: #475569; /* Subtle slate blue/grey change */
}

/* Keep the orange 'Tech' bright on hover */
.logo-area:hover .logo-text span {
    color: #f59e0b !important; /* Brighter Amber */
}

/* DESKTOP NAV LINKS */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.nav-links a { 
    text-decoration: none; 
    color: #1e293b; 
    font-weight: 700; 
    font-size: 1.125rem; 
    transition: color 0.3s; 
}

.nav-links a:hover { color: #d97706; }

.btn-contact {
    background-color: #0f172a; 
    color: white !important; 
    padding: 0.6rem 1.75rem;
    border-radius: 2px; 
}

/* CONTACT BUTTON HOVER */
.btn-contact:hover {
    background-color: #d97706; /* Changes from dark blue to orange */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); /* Adds an orange glow */
    color: white !important; /* Ensures text stays white */
}

/* Add a transition to the original class for smoothness */
.btn-contact {
    background-color: #0f172a; 
    color: white !important; 
    padding: 0.6rem 1.75rem;
    border-radius: 2px;
    transition: all 0.3s ease; /* This makes the light-up effect smooth */
}

/* MOBILE HAMBURGER BUTTON */
.menu-toggle {
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #0f172a;
    transition: 0.3s ease-in-out;
}

/* MOBILE RESPONSIVE LOGIC */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger */
    }

    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 2rem;
        border-bottom: 3px solid #d97706;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* JavaScript Toggle Class */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        padding: 12px 0;
        display: block;
    }

    /* Hamburger to X Animation */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.2rem !important;
    }
}