﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body {
    background: #05060b;
    color: white;
    overflow-x: hidden;
}
header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
header .logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    padding: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
}
nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}
nav a:hover {
    color: #9c4dff;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 200px 60px 100px;
}
.hero-content h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #9c4dff, #3ddcff);
    -webkit-background-clip: text;
    color: transparent;
}
.hero-content p {
    margin-top: 10px;
    font-size: 1.2rem;
    max-width: 450px;
}
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #9c4dff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}
.btn:hover {
    background: #3ddcff;
}
.hero-image img {
    width: 580px;
}

.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #05060b;
}

/* About Section */
.about-section {
    background: #111;
    padding: 70px 10%;
    color: white;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Left Image */
.about-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Right Content */
.about-content {
    max-width: 650px;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.about-content p {
    margin-bottom: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Button */
.about-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #0055ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.about-btn:hover {
    background: #003ecc;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }
}

/* Services*/
/* Services Section */
.services-section {
    background: #101010;
    padding: 70px 10%;
    color: white;
    font-family: Arial, sans-serif;
}

.services-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 10px;
}

.services-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 50px;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Service Card */
.service-card {
    display: flex;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 14px;
    gap: 25px;
    transition: 0.3s;
    align-items: center;
}

.service-card:hover {
    background: #222;
    transform: translateY(-5px);
}

/* Image Styling */
.service-image img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* Text Area */
.service-content h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.service-content p {
    opacity: 0.85;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Button */
.service-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0055ff;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.service-btn:hover {
    background: #003ecc;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .service-image img {
        width: 100%;
        height: 200px;
    }
}

/* Contact Section Styling */
.contact-section {
    padding: 60px 10%;
    background: #0d0d0d;
    color: white;
    font-family: Arial, sans-serif;
}

.contact-section h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Left side info */
.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.social-links {
    margin-top: 20px;
}

.social-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #222;
    margin-right: 10px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: #444;
}

/* Form Styling */
.contact-form {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
}

.contact-form h3 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    outline: none;
    border-radius: 6px;
    background: #2b2b2b;
    color: white;
}

.contact-form textarea {
    height: 120px;
}

.send-btn {
    width: 100%;
    padding: 12px;
    background: #0055ff;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.send-btn:hover {
    background: #003ecc;
}

#form-status {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}
/* Projects Section */
.projects-section {
    padding: 60px 10%;
    background: #111;
    color: white;
    text-align: center;
}

.projects-section h2 {
    font-size: 38px;
    margin-bottom: 10px;
    margin-top: 35px;
}

.project-subtitle {
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Project Cards Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* Card Styling */
.project-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-5px);
    background: #222;
}

.project-card img {
    width: 250px;
    height: 250px;
    object-fit: fill;
    border-radius: 10px;
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.project-card p {
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Button */
.project-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0055ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.project-btn:hover {
    background: #003ecc;
}

/* ============================= */
/* RESPONSIVE FIXES (GLOBAL) */
/* ============================= */

@media (max-width: 1200px) {
    .hero {
        padding: 150px 40px 60px;
    }

    .hero-image img {
        width: 420px;
    }
}

/* ========= TABLETS (≤900px) ========== */
@media (max-width: 900px) {
    /* HEADER */
    header {
        padding: 15px 25px;
    }

    nav ul {
        gap: 20px;
    }

    /* HERO */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 150px 20px 60px;
        gap: 40px;
    }

    .hero-image img {
        width: 320px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    /* ABOUT SECTION */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 80%;
    }

    /* PROJECTS — change to 2 columns */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card img {
        width: 100%;
        height: auto;
    }

    /* SERVICES */
    .service-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .service-image img {
        width: 100%;
        height: auto;
    }

    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========= MOBILE (≤600px) ========== */
@media (max-width: 600px) {
    /* HEADER */
    header {
        padding: 12px 18px;
    }

    nav ul {
        display: none; /* Optional: hide menu for now */
    }

    /* HERO */
    .hero {
        padding: 140px 20px 40px;
    }

    .hero-image img {
        width: 260px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* PROJECT GRID — MOBILE: 1 column */
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        text-align: center;
    }

    /* SERVICES */
    .services-title {
        font-size: 30px;
    }

    /* CONTACT */
    .social-btn {
        margin-bottom: 10px;
    }
}

/* ========= VERY SMALL SCREEN (≤400px) ========== */
@media (max-width: 400px) {
    header .logo img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-image img {
        width: 220px;
    }

    .about-content h2,
    .projects-section h2,
    .services-title,
    .contact-section h2 {
        font-size: 28px;
    }
}

/* ============================= */
/* NAVIGATION STYLING */
/* ============================= */

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #9c4dff;
}

/* Hamburger Icon (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* ============================= */
/* MOBILE NAVIGATION */
/* ============================= */

@media (max-width: 900px) {
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 15, 25, 0.95);
        backdrop-filter: blur(8px);
        padding-top: 40px;
        transition: 0.4s ease;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
        align-items: start;
        gap: 25px;
        padding-left: 30px;
    }

    nav ul li a {
        font-size: 1.3rem;
        padding: 5px 0;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* When menu opens */
    nav.active {
        right: 0;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

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