/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #030712;
    color: #eef2ff;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* ===== ANIMATED BACKGROUND GLOW ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.08), transparent 60%);
    z-index: -2;
    pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #94a3f8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #60a5fa;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(105deg, #3b82f6, #9333ea);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3b82f6;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tagline {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin: 20px 0 32px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #60a5fa;
    margin-right: 6px;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    color: #94a3b8;
    font-size: 1.2rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.about-highlight {
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 18px;
    border-radius: 16px;
    margin: 16px 0;
    border-left: 3px solid #3b82f6;
}

.about-highlight i {
    color: #3b82f6;
    margin-right: 12px;
}

.about-stats-card {
    display: flex;
    gap: 30px;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 32px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-circle {
    text-align: center;
}

.stat-circle span {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-circle p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    padding: 32px 24px;
    border-radius: 28px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #94a3b8;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.portfolio-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    padding: 28px;
    border-radius: 28px;
    transition: 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card:hover {
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.7);
}

.portfolio-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #a5c9ff;
}

.portfolio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.portfolio-card p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tech span {
    background: #1e293b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3f8;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.contact-item i {
    font-size: 1.8rem;
    color: #3b82f6;
    width: 44px;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 28px;
}

.social-links a {
    background: #1e293b;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.2s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 14px 18px;
    border-radius: 24px;
    font-family: inherit;
    color: white;
    font-size: 1rem;
    transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.form-note {
    font-size: 0.8rem;
    text-align: center;
    color: #64748b;
}

/* ===== FOOTER ===== */
footer {
    background: #020617;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff, #94a3f8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 12px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #60a5fa;
}

.copyright {
    font-size: 0.8rem;
    color: #475569;
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-stats {
        gap: 16px;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
        width: 100%;
        overflow: hidden;
        /* Ensures nothing spills out visually */
    }

    .contact-form {
        width: 100%;
        /* Ensure the form takes full width of the container */
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        /* Forces inputs to stay within the form boundaries */

        max-width: 100%;
    }

    .btn-primary {
        width: 100%;
        /* Makes the 'Send Message' button full width on mobile for better UX */

        justify-content: center;
    }
}






/* ===== NAVBAR STYLES ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3f8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Logo image styling */
.logo-img {
    height: 32px;
    /* Adjust to match your desired size */
    width: auto;
    /* Maintains aspect ratio */
    vertical-align: middle;
    margin-right: 8px;
    /* Space between logo and text */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #eef2ff;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #eef2ff;
    transition: color 0.3s;
}

.hamburger:hover {
    color: #60a5fa;
}



/* Offset for anchor links (prevents navbar overlap) */
section[id] {
    scroll-margin-top: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        z-index: 999;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0.8rem 20px;
    }



    /*contact form styling*/
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 22px;
        width: 100%;
        overflow: hidden;
        /* Ensures nothing spills out visually */
    }

    .contact-form {
        width: 100%;
        /* Ensure the form takes full width of the container */
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        /* Forces inputs to stay within the form boundaries */

        max-width: 100%;
    }

    .btn-primary {
        width: 100%;
        /* Makes the 'Send Message' button full width on mobile for better UX */

        justify-content: center;
    }
}



/* Additional specific fix for very small devices (like the one in your photo) */
@media (max-width: 480px) {
    .contact-grid {
        padding: 20px 16px;
        /* Even smaller padding for narrow screens */
        border-radius: 24px;
        /* Slightly smaller radius to match the screen vibe */
    }

    .contact-item {
        gap: 12px;
        font-size: 0.9rem;
        /* Prevent long email strings from breaking layout */
    }

    .contact-item i {
        font-size: 1.4rem;
        width: 30px;
    }
}