/* ===================================
   SPACE WELDING & FABRICATION
   Modern Space-Themed Website Styles
   =================================== */

/* === CSS VARIABLES === */
:root {
    /* Space Theme Colors */
    --color-space-black: #0a0a0a;
    --color-charcoal: #1a1a1a;
    --color-dark-gray: #2a2a2a;
    --color-neon-green: #00ff88;
    --color-green-glow: #00d4aa;
    --color-green-dark: #00a67e;
    --color-text-light: #e0e0e0;
    --color-text-white: #ffffff;
    --color-text-muted: #a0a0a0;

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-space-black);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-white);
}

a {
    color: var(--color-neon-green);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-green-glow);
}

/* === CONTAINER === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: all var(--transition-speed);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 255, 136, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none;
}

@media (min-width: 769px) {
    .logo-text {
        display: block;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-neon-green);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--color-neon-green);
    transition: all var(--transition-speed);
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1a1a2e 0%, #0a0a0a 100%);
}

/* Starfield Canvas Background */
.starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-logo {
    width: clamp(250px, 40vw, 450px);
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-white);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5),
                 0 0 40px rgba(0, 255, 136, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.3); }
    to { text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 60px rgba(0, 255, 136, 0.5); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-neon-green);
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    color: var(--color-text-muted);
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-neon-green), var(--color-green-dark));
    color: var(--color-space-black);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 40px rgba(0, 255, 136, 0.6);
    color: var(--color-space-black);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-neon-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.arrow-down {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-neon-green);
    border-bottom: 2px solid var(--color-neon-green);
    transform: rotate(45deg);
}

/* === SECTION TITLES === */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-neon-green), transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === ABOUT SECTION === */
.about {
    background: linear-gradient(180deg, var(--color-space-black) 0%, var(--color-charcoal) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid var(--color-neon-green);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-neon-green);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.credential-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.credential-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-neon-green);
    font-family: var(--font-heading);
}

.credential-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.highlight {
    background: rgba(0, 255, 136, 0.1);
    padding: 20px;
    border-left: 4px solid var(--color-neon-green);
    border-radius: 5px;
    font-style: italic;
}

/* === SERVICES SECTION === */
.services {
    background: var(--color-charcoal);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(0, 255, 136, 0.03);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all var(--transition-speed);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--color-neon-green);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(1.5);
}

.service-card:hover .service-icon {
    filter: none;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-neon-green);
}

.service-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* === PORTFOLIO SECTION === */
.portfolio {
    background: linear-gradient(180deg, var(--color-charcoal) 0%, var(--color-space-black) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--color-space-black);
}

.portfolio-overlay p {
    font-size: 1rem;
    color: var(--color-space-black);
    font-weight: 600;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background: var(--color-charcoal);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(0, 255, 136, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    border-color: var(--color-neon-green);
}

.stars-rating {
    color: var(--color-neon-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-text-light);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-neon-green);
}

/* === CONTACT SECTION === */
.contact {
    background: linear-gradient(180deg, var(--color-charcoal) 0%, var(--color-space-black) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.contact-icon {
    font-size: 2rem;
    filter: grayscale(100%) brightness(1.5);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-neon-green);
}

.contact-item p,
.contact-item a {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-neon-green);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.submit-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-neon-green), var(--color-green-dark));
    color: var(--color-space-black);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.form-message {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--color-neon-green);
    border: 1px solid var(--color-neon-green);
    display: block;
}

.form-message.error {
    background: rgba(255, 50, 50, 0.2);
    color: #ff5050;
    border: 1px solid #ff5050;
    display: block;
}

/* === FOOTER === */
.footer {
    background: var(--color-space-black);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-neon-green);
}

.footer-section p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-light);
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--color-neon-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    color: var(--color-text-muted);
}

.footer-bottom p {
    margin: 5px 0;
}

/* === SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        padding: 30px 0;
        border-top: 1px solid rgba(0, 255, 136, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-logo {
        width: clamp(200px, 60vw, 300px);
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .credentials {
        grid-template-columns: 1fr;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Section Padding */
    :root {
        --section-padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
