/* ===== Premium Modern Freelancer Color Scheme ===== */
:root {
    --primary: #2563eb;
    --secondary: #0ea5e9;
    --accent: #7c3aed;
    --dark: #0b1220;
    --light: #f8fafc;
    --text: #1f2937;
    --text-light: #6b7280;
    --gray: #e5e7eb;
    --white: #ffffff;

    --primary: #497ff3;        /* Royal Blue */
    --secondary: #06b6d4;      /* Cyan */
    --accent: #8b5cf6;         /* Soft Purple */
    
    --dark: #0f172a;           /* Dark Navy */
    --light: #f8fafc;          /* Soft White */
    
    --text: #1e293b;           /* Main text */
    --text-light: #000000;     /* Muted text */
    
    --gray: #e2e8f0;
    --white: #ffffff;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-2: linear-gradient(135deg, #8b5cf6, #6366f1);
    --gradient-3: linear-gradient(135deg, #06b6d4, #22d3ee);

    /* Glow Effects */
    --neon-primary: 0 0 20px rgba(37, 99, 235, 0.45);
    --neon-accent: 0 0 20px rgba(92, 246, 133, 0.45);

    /* Glassmorphism */
    --glass-light: rgba(255, 255, 255, 0.25);
    --glass-dark: rgba(15, 23, 42, 0.4);
}




/* ===== Ultra Smooth Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--neon-primary); }
    50% { box-shadow: 0 0 25px rgba(69, 226, 140, 0.9); }
}

@keyframes colorChange {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* ===== Base Super Styled Elements ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(110, 69, 226, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 126, 95, 0.05) 0%, transparent 20%);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

h1 { 
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Glass Morphism Effect ===== */
.glass-card {
    background: rgba(153, 163, 230, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(62, 0, 250, 0.18);
    box-shadow: 0 9px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.5s ease;
    padding: 30px;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Ultra Styled Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(236, 206, 210, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
    animation: glow 3s infinite alternate;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

/* Navigation */
nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
    
}

nav ul li a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    color: var(--dark);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
}

/* ===== Hero Section with Floating Animation ===== */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(110, 69, 226, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 126, 95, 0.1) 0%, transparent 30%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-text h3 {
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark);
}

.hero-text h3 span {
    color: var(--primary);
    font-weight: 600;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    text-align: center;
}

/* Bottom shadow / base only */
.hero-image::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    width: 65%;
    height: 28px;
    background: radial-gradient(
        ellipse at center,
        rgba(15, 23, 42, 0.35),
        transparent 70%
    );
    transform: translateX(-50%);
    filter: blur(10px);
    z-index: 0;
}

.hero-image img {
    position: relative;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 22px;
    object-fit: cover;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}



/* ===== Hero Section with Floating Animation ===== */
.social-icons {
    position: absolute;
    right: 30px;          /* move icons to right side */
    top: 50%;             /* center vertically */
    transform: translateY(-50%);
    display: flex;        /* fixed typo */
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--dark);
}

.social-icon:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* ===== About Section ===== */
#about {
    background:  #f7f9fc;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-list {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-item span {
    font-weight: 600;
    min-width: 80px;
    color: var(--dark);
}

.skills {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-bar {
    height: 10px;
    background: var(--gray);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Animated Gradient Buttons ===== */
.btn {
    background: var(--gradient-1);
    background-size: 200% auto;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(110, 69, 226, 0.4);
    display: inline-block;
    padding: 12px 30px;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    animation: colorChange 3s infinite;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(172, 155, 219, 0.5);
}

.btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
}

.btn-outline:hover::before {
    opacity: 1;
}

/* ===============================
   Services Section
================================= */
#services {
    padding: 60px 20px;
    background:  #F8FAFC;
    font-family: Arial, sans-serif;
}

#services .section-title {
    text-align: center;
    margin-bottom: 40px;
}

#services .section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#services .section-title p {
    font-size: 1rem;
    color: #0F172A;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Service Item Card */
.service-item {
    background: linear-gradient(135deg,  #eff0f7, #f5f7fa);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 1 5px 13px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Icons with animation */
.service-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Icon colors */
.icon.web { color: #4e91f9; }
.icon.design { color: #f39c12; }
.icon.accounting { color: #27ae60; }
.icon.video { color: #e74c3c; }

/* Titles and Paragraphs */
.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 15px;
}

/* Tools Tags */
.service-item .tools {
    display: inline-block;
    font-size: 0.85rem;
    color: #ffffff;
    background: #497ff3;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Icon Animation Keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* exactly 2 per row */
    }
}

@media (max-width: 480px) {
    #services {
        padding: 40px 10px;
    }

    .service-item {
        padding: 20px 15px;
    }
}

/* Hover effect (Desktop only) */
.service-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

/* Icon */
.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    transform: rotateY(180deg) scale(1.1);
    background: var(--gradient-2);
}

/* Title */
.service-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Description */
.service-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* Tools Tag */
#services .Tools {
    display: inline-block;
    font-size: 11px;
    padding: 4px 8px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 500;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
        gap: 12px;
    }

    .service-item {
        padding: 15px 10px;
        transform: none;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .service-item h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .service-item p {
        font-size: 12px;
        line-height: 1.4;
    }

    #services .Tools {
        font-size: 9px;
        padding: 3px 6px;
        margin-top: 6px;
    }

    /* Disable hover animation on mobile */
    .service-item:hover {
        transform: none;
    }
}


/* ===== Projects Section ===== */
#projects {
    background: #fffffffd;
    padding: 30px 0;
}

/* ===== Filter Buttons ===== */
.project-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 40px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== Project Grid ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* SMALLER */
    gap: 18px;
}

/* ===== Project Card (CIRCLE) ===== */
.project-item {
    position: relative;
    width: 100%;
    max-width: 200px; /* controls circle size */
    margin: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 13px rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* ===== Project Image ===== */
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* ===== Overlay ===== */
.project-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        to top,
        rgba(110, 69, 226, 0.9),
        rgba(110, 69, 226, 0.65)
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    text-align: center;
    color: #fff;
    transition: opacity 0.4s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* ===== Overlay Text ===== */
.project-overlay h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.project-overlay p {
    font-size: 12px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Icon Button ===== */
.project-link {
    width: 30px;
    height: 30px;
    background: #56d395;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 SHAPES */
        gap: 14px;
    }

    .project-item {
        max-width: 160px; /* smaller circles */
    }

    .project-overlay h3 {
        font-size: 13px;
    }

    .project-overlay p {
        font-size: 11px;
    }
}

/* ===== Small Mobile (IMPORTANT FIX) ===== */
@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* FORCE 2 SHAPES */
        gap: 12px;
    }

    .project-item {
        max-width: 140px;
    }
}

/* ===== Skills Section ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}


/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.contact-info h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1rem;
}

.info-text h4 {
    margin-bottom: 5px;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-social a:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: var(--primary);
    color: white;
}

.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #136cc5;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(110, 69, 226, 0.3);
    animation: inputPulse 2s infinite;
}

@keyframes inputPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(110, 69, 226, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(110, 69, 226, 0.2); }
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */

#footer {
    background: var(--dark);
    color: #020617;
    padding-top: 80px;
}

/* Main grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* ---------- Logo / About ---------- */
.footer-logo {
    text-align: left;
}

.footer-logo .logo-img {
    display: none; /* remove logo image completely */
}

.footer-logo .logo-text {
    color: white;
    font-size: 22px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Section Titles ---------- */
.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    font-size: 18px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* ---------- Links ---------- */
.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: 0.3s;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: white;
    padding-left: 5px;
}

/* ---------- Newsletter ---------- */
.footer-newsletter p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 15px;
}

#newsletterForm {
    display: flex;
}

#newsletterForm input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 14px;
}

#newsletterForm button {
    width: 45px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}

/* ---------- Bottom ---------- */
.footer-bottom {
    background: rgba(1,77,77,0.2);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo logo"
            "links services"
            "newsletter newsletter";
        gap: 25px;
    }

    .footer-logo {
        grid-area: logo;
        text-align: center;
    }

    .footer-links {
        grid-area: links;
    }

    .footer-services {
        grid-area: services;
    }

    .footer-newsletter {
        grid-area: newsletter;
        text-align: center;
    }

    .footer-logo .logo-text {
        font-size: 20px;
    }

    .footer-logo p {
        font-size: 14px;
        max-width: 90%;
        margin: 0 auto;
    }

    .footer-links h4,
    .footer-services h4,
    .footer-newsletter h4 {
        font-size: 16px;
    }

    .footer-links ul li a,
    .footer-services ul li a {
        font-size: 14px;
    }
}


/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* ===== Floating Particles ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-100px) translateX(50px); }
    100% { transform: translateY(0) translateX(0); }
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.preloader::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-1);
    background-size: 400% 400%;
    animation: gradientSpin 2s linear infinite, colorChange 6s ease infinite;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
}

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { 
        transform: scale(0.0);
    } 50% { 
        transform: scale(1.0);
    }
}

@keyframes gradientSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    section {
        padding: 70px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    section {
        padding: 60px 0;
    }
    
    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: all 0.5s ease;
        z-index: 1000;
        padding: 80px 20px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0 0 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .social-icons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
    }
    
    .hero-image img {
        max-height: 350px;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 40px;
    }

   
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .portfolio-filter {
        gap: 5px;
    }

    .filter-btn {
        padding: 5px 15px;
        font-size: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* ===== Body ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Chat Button ===== */
/* ===== Chat Button ===== */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;       /* desktop size */
    height: 60px;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2.5s infinite; /* subtle pulse */
}

#chat-button:hover {
    background-color: #1e4fc1;
    transform: scale(1.1);
}

/* ===== Pulse Animation ===== */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }
    50% { transform: scale(1.08); box-shadow: 0 10px 25px rgba(0,0,0,0.35); }
    100% { transform: scale(1); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
    #chat-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    
}

#chat-button:hover {
    background-color: #1e4fc1;
}

/* ===== Chat Box ===== */
#chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

/* ===== Chat Header ===== */
#chat-header {
    background-color: #2563eb;
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat {
    cursor: pointer;
    font-size: 22px;
}

/* ===== Chat Messages ===== */
#chat-messages {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    clear: both;
}

.user {
    background-color: #06b6d4;
    color: white;
    align-self: flex-end;
    float: right;
}

.bot {
    background-color: #f1f1f1;
    color: black;
    float: left;
}

/* ===== Chat Input ===== */
#chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-input input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 16px;
}

#chat-input button {
    padding: 12px 15px;
    border: none;
    background-color: #2563eb;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#chat-input button:hover {
    background-color: #1e4fc1;
}