/* Noratech - Modern Electrical Engineering Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --bg-color: #05080a; /* Deep Midnight Navy */
    --card-bg: #0d1117; /* Slate Surface */
    --accent-color: #00d2ff;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
    --accent-glow: rgba(0, 210, 255, 0.15);
    --copper-accent: #b87333; /* Premium Industrial Copper */
    --copper-glow: rgba(184, 115, 51, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --nav-height: 80px;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 119, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title span {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(10, 10, 10, 0.95);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    top: 100%;
    left: -20px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-content a {
    text-transform: none;
    letter-spacing: normal;
    padding: 12px 20px;
    display: block;
}

.dropdown-content a:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

nav ul li.dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 1s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4), 0 0 10px rgba(184, 115, 51, 0.2);
    filter: brightness(1.1);
}

.btn-outline {
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--accent-color);
    background: rgba(0, 210, 255, 0.05);
}

.btn-outline:hover {
    border-color: var(--copper-accent);
    color: var(--copper-accent);
    background: rgba(184, 115, 51, 0.05);
}

/* Sections */
section {
    padding: 100px 5%;
}

#contact {
    padding-bottom: 150px; /* Extra space to prevent footer overlap */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Cards & Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 210, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    height: 100%;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.icon-copper {
    color: var(--copper-accent) !important;
    background: linear-gradient(135deg, #b87333 0%, #8b4513 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 8px var(--copper-glow)) !important;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 0;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.service-card ul li::before {
    content: '\2022'; /* Bullet */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1.1;
}

/* Why Us */
.why-us {
    background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(0, 119, 255, 0.05));
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.why-item h4 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100px);
    transition: var(--transition);
    opacity: 0;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start; /* Align to top to prevent weird stretching */
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 238, 255, 0.05);
}

#map {
    width: 100%;
    height: 400px; /* Fixed height instead of 100% to avoid overflow issues */
    border-radius: 12px;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid, .contact-container, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    header nav, header .btn {
        display: none;
    }

    header {
        justify-content: center;
    }

    section {
        padding: 60px 5%;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .project-item {
        height: 300px;
    }

    .project-overlay {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    #map {
        height: 300px;
        min-height: auto;
    }
    
    #contact {
        padding-bottom: 80px; /* Adjusted for mobile */
    }
}

footer {
    padding: 5rem 5% 3rem; /* Increased top padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
    width: 100%;
    background: var(--bg-color);
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 30px;
    right: -400px; /* Start off-screen */
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-color);
}

.toast.show {
    right: 30px;
}

.toast i {
    font-size: 1.5rem;
}

.toast-success {
    border-left-color: #00d2ff;
}
.toast-success i {
    color: #00d2ff;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
}

.toast-error {
    border-left-color: #ff3b30;
}
.toast-error i {
    color: #ff3b30;
    filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.4));
}
