/* Base Styles & Variables */
:root {
    --bg-color: #0d0e15;
    --bg-darker: #07080b;
    --text-primary: #f8f9fa;
    --text-secondary: #a0aab2;
    --accent-color: #7b2cbf;
    /* Deep Purple */
    --accent-glow: #9d4edd;
    --accent-secondary: #3a86ff;
    /* Electric Blue */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(58, 134, 255, 0.5));
    /* Adds a premium pop to gradient text */
}

.highlight {
    color: var(--accent-glow);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
    /* Cinematic pop glow */
}

/* Glassmorphism */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(157, 78, 221, 0.5);
    box-shadow: 0 20px 50px rgba(123, 44, 191, 0.3);
}

.glass-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.glass-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-glow);
    color: white;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-glow));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle premium edge */
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(157, 78, 221, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-secondary);
}

.w-100 {
    width: 100%;
}

/* Section Headers */
.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.center {
    text-align: center;
    margin-bottom: 4rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 14, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-glow);
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary).active::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover,
.nav-links a:not(.btn-primary).active {
    color: white;
}

.nav-links .btn-primary {
    padding: 0.6rem 1.5rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: 100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    z-index: 10;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.hero .title {
    font-size: 5rem;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    height: 600px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 20;
    /* Keep it above the profile image and container */
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-glow));
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 5s infinite alternate ease-in-out;
}

/* Image Styles */
.real-img {
    width: 100%;
    height: 100%;
    /* object-fit: contain ensures the image is NEVER cropped. It shows the full photo and fills empty space. */
    object-fit: contain;
    border-radius: 15px;
    /* same as container */
    background: transparent;
}

.profile-img {
    border-radius: 20px;
    /* match wrapper */
}

.floating-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
}

.floating-badge .text {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.2), rgba(58, 134, 255, 0.2));
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    color: white;
}

.service-card p {
    flex-grow: 1;
}

.service-list {
    margin-top: 1.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.service-list i {
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--glass-bg);
    color: white;
    border-color: var(--accent-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Enforce 2 per row for a larger, premium look */
    gap: 2rem;
}

.portfolio-item {
    padding: 1rem;
    display: block;
    /* for filtering script */
}

.portfolio-img-container {
    position: relative;
    width: 100%;
    /* Let the height adjust automatically based on image aspect ratio */
    height: auto;
    aspect-ratio: 16/9;
    /* Default aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    /* Centers the image inside the container */
    align-items: center;
    justify-content: center;
    background: #050505;
    /* Deep black for cinematic feel */
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
    /* Vignette effect */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* Removed transform transition because we are now using opacity fades on the slides themselves */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ensure the first slide dictates the container height */
.slide:first-child {
    position: relative;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    /* Keep above overlay but below edit buttons */
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: var(--accent-glow);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Slider Arrows - Always visible and aligned */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    z-index: 100;
    cursor: pointer;
    background: rgba(10, 10, 15, 0.85);
    color: white;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent-glow);
    border-color: var(--accent-glow);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
    left: 15px;
}

.slider-arrow-right {
    right: 15px;
}

.placeholder-img.small {
    font-size: 3rem;
}

.portfolio-overlay {
    display: none !important;
}

.portfolio-item:hover .portfolio-overlay {
    display: none !important;
}

.view-btn {
    display: none !important;
}

.portfolio-item:hover .view-btn {
    display: none !important;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.3rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 0;
    font-weight: 600;
}

/* Reviews / Testimonials Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 3px solid transparent;
    transition: all 0.4s ease;
}

.review-card:hover {
    border-top: 3px solid var(--accent-glow);
    transform: translateY(-10px);
}

.stars {
    color: #FFD700;
    /* Rich Gold */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 5px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-glow);
}

.client-info h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.2rem;
}

.client-info p {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ticker Section */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    position: relative;
    clear: both;
    width: 100%;
}

.ticker-track {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 3rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-item i {
    color: var(--accent-glow);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-details {
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.detail-item h5 {
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-item p {
    color: white;
    font-weight: 600;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
}

select option {
    background: var(--bg-color);
    color: white;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--bg-darker);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo span {
    color: var(--accent-glow);
    font-weight: 300;
}

.copyright {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-built {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animations (Intersection Observer Targets) */
.hidden-element {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hidden-element.left {
    transform: translateX(-50px);
}

.hidden-element.right {
    transform: translateX(50px);
}

.hidden-element.up {
    transform: translateY(50px);
}

.hidden-element.down {
    transform: translateY(-50px);
}

.hidden-element.show {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media screen and (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero .title {
        font-size: 3.5rem;
    }

    .image-wrapper {
        height: 400px;
    }

    .about-image {
        order: -1;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 350px;
        background: rgba(13, 14, 21, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        border-left: 1px solid var(--glass-border);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero .title {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .floating-badge {
        bottom: 10px;
        right: 10px;
        padding: 1rem;
    }

    .floating-badge .number {
        font-size: 1.5rem;
    }
}