/* Global Styles */
:root {
    --bg-color: #1e1e26;
    --text-color: #e0e0e0;
    --accent-color: #ffc107;
    /* Gold */
    --secondary-bg: #2b2b36;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 193, 7, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 38, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    /* Reverted to 1200px to restore original spacing */
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

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

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


.hamburger,
.menu-toggle {
    display: none;
}

/* Mobile Menu Alignment Fix */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 5%;
        /* Ensure consistent padding */
    }

    .menu-toggle {
        display: flex;
        /* Changed from block to flex for alignment */
        align-items: center;
        margin-left: auto;
        /* Push to far right */
        cursor: pointer;
        font-size: 1.5rem;
        color: #fff;
        z-index: 1001;
    }

    /* Override hamburger display none from desktop if it was improperly set */
    .hamburger {
        display: block;
    }
}

/* Contact Button Highlight */
.nav-links .btn-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s;
    background: var(--accent-color);
    color: #000 !important;
    /* Force black text */
    border: 2px solid var(--accent-color);
}

.nav-links .btn-primary:hover,
.nav-links .btn-primary.active {
    background: #e0a800;
    /* Darker yellow/gold on hover/active */
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.nav-links .btn-primary::after {
    display: none;
    /* Remove underline effect for button */
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Stack hero-container and stats-container vertically */
    align-items: center;
    justify-content: flex-start;
    /* Changed from center to flex-start to remove top space */
    padding: 120px 5% 0;
    /* Fixed top position */
    /* Add top padding to account for fixed header */
    background: radial-gradient(circle at center, #2b2b36 0%, #1e1e26 70%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 30px;
    /* Rounded rectangle as per reference */
    overflow: hidden;
    /* border: 5px solid var(--accent-color); Removed solid border to match clean look */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* Darker shadow */
    position: relative;
    background: #2b2b36;
    /* Fallback */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide old profile img container if it exists in HTML, assuming we use .hero-image structure now */
.profile-img-container {
    display: none;
}

.greeting {
    font-size: 1.5rem;
    color: #ffc107;
    /* Yellow */
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.name {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-transform: capitalize;
}

.role {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #ccc;
}

.hero-btns {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    /* Align left */
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    /* Align left */
}

.social-links a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

/* Updated Stats Section Styles */
.stats-container {
    max-width: 1000px;
    margin: 20px auto 0;
    /* Reduced from 40px to pull up */
    /* Pull up to overlap hero slightly */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: transparent;
    /* Transparent to match reference */
    border-radius: 0;
    padding: 2rem 0;
    box-shadow: none;
    position: relative;
    z-index: 10;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
}

.stat-item {
    text-align: center;
    border-right: none;
    /* Removed borders for clean look */
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* General Section Styles */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

/* Skills Marquee Animation */
.skills-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: var(--bg-alt);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.skills-marquee::before,
.skills-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.skills-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt), transparent);
}

.skills-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt), transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.marquee-item i {
    font-size: 2.5rem;
}

/* Colorful Logos */
.marquee-item .fa-shopify {
    color: #95BF47;
}

.marquee-item .fa-wordpress {
    color: #21759B;
}

.marquee-item .fa-cart-shopping {
    color: #96588A;
}

/* WooCommerce */
.marquee-item .fa-wix {
    color: #FFFFFF;
}

/* Ensure visibility on dark mode */
.marquee-item .fa-squarespace {
    color: #FFFFFF;
}

.marquee-item .fa-figma {
    color: #F24E1E;
}

.marquee-item .fa-html5 {
    color: #E34F26;
}

.marquee-item .fa-css3-alt {
    color: #1572B6;
}

.marquee-item .fa-js {
    color: #F7DF1E;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* About Grid Redesign */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-heading {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ffc107;
    padding-left: 1rem;
}

.about-desc {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 1.7;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: #2b2b36;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.1);
}

/* Make About responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Portfolio Slider Styles */
.portfolio-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
}

.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    background: var(--secondary-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.swiper-slide:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.portfolio-img {
    width: 100%;
    height: 220px;
    /* Fixed height for consistency */
    display: block;
    overflow: hidden;
}

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.portfolio-links {
    display: flex;
    gap: 10px;
}

.portfolio-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.portfolio-link:hover {
    background: var(--accent-color);
    color: #000;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* Service Cards (if keeping) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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


/* Testimonials */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 300px;
    background: var(--secondary-bg);
    /* border: 1px solid var(--glass-bg); */
    padding: 2rem;
    border-radius: 15px;
    scroll-snap-align: center;
    border: 1px solid var(--border-color);
}

.quote-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.client-info h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Contact Form */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--secondary-bg);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: #aaa;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    flex: 1.5;
    background: #1e1e26;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form {
    width: 100%;
}

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

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: #1e1e26;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: capitalize;
}

.btn-primary {
    background: #ffc107;
    color: #000;
    /* Black text on yellow */
    border: 2px solid #ffc107;
}

.btn-primary:hover {
    background: #ffdb58;
    /* Lighter yellow on hover */
    border-color: #ffdb58;
    color: #000;
    /* Keep black text */
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.btn-outline:hover {
    background: rgba(255, 193, 7, 0.1);
    /* Slight tint instead of full fill */
    color: #ffc107;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #15151a;
    padding: 2rem 5%;
    text-align: center;
    color: #777;
    margin-top: 5rem;
}

/* Buttons in Hero */
/* .hero-btns moved to Hero Section block for better context */
/* .social-links moved to Hero Section block */

.social-icon:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--secondary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .name {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-top: 0;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .swiper-slide {
        width: 85%;
        /* Shows part of next slide to encourage scrolling */
    }

    /* Hero Responsive */
    .hero {
        padding-top: 120px;
        /* More padding on mobile for header */
        height: auto;
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Image on top? No, usually image first or text first. Let's keep text top on mobile or adapt */
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns,
    .social-links {
        justify-content: center;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    /* Contact Responsive */
    .contact-container {
        flex-direction: column;
        padding: 2rem;
        gap: 3rem;
    }

    .contact-info,
    .contact-form-wrapper {
        width: 100%;
        flex: auto;
    }
}

/* Form Messages Styling */
#form-messages {
    margin-bottom: 20px;
    display: none;
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* reCAPTCHA Styling */
.g-recaptcha {
    display: inline-block;
    margin-bottom: 10px;
}

/* Ensure reCAPTCHA is centered on mobile */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}