:root {
    --bg-dark: #050505;
    --bg-card: #0c0c0c;
    --primary: #6366f1;
    --secondary: #0ea5e9;
    --accent: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(12, 12, 12, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(168, 85, 247, 0.5) 100%);
}

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

html {
    scroll-behavior: initial;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, background-color 0.3s;
    transform: translate(-50%, -50%);
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header & Nav */
.header {
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    position: fixed;
    top: 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.btn-small {
    padding: 0.6rem 1.25rem;
    background: var(--gradient-primary);
    border-radius: 50px;
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    border: 2px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-border);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
    transform: translateY(-50%);
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.reveal-text {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal-fade {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

/* Floating UI */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 600px;
}

.floating-ui {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-1 {
    top: 15%;
    right: 10%;
}

.card-2 {
    top: 45%;
    right: 25%;
}

.card-3 {
    bottom: 15%;
    right: 5%;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .reveal-text {
        font-size: 4rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .reveal-fade {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Section Commons */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
}

.grids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* About Section */
.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
}

.badge-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    color: var(--text-main);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2rem;
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.service-list li i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Portfolio Sections */
.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    cursor: none;
}

.project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-info {
    padding: 1.5rem 0;
}

.project-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.social-card {
    background: var(--bg-card);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.social-preview {
    aspect-ratio: 1;
    overflow: hidden;
}

.social-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-stats {
    padding: 1.5rem;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.02);
}

.s-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.s-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.perf-card {
    padding: 2.5rem;
    border-radius: 2rem;
}

.perf-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.client-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.perf-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.m-val {
    font-size: 1.5rem;
    font-weight: 800;
}

.m-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.highlight .m-val {
    color: var(--primary);
}

.perf-graph {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.bar {
    flex: 1;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease, height 1s ease-out;
}

.perf-card:hover .bar {
    background: var(--primary);
}

@media (max-width: 600px) {

    .portfolio-grid,
    .performance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grids {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Testimonials */
.testimonial-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
}

.testimonial-viewport {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    min-width: 100%;
    flex-shrink: 0;
    padding: 4rem;
    border-radius: 2.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t-quote {
    color: var(--primary);
    margin-bottom: 2rem;
}

.t-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    font-style: italic;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 2.5rem;
    }

    .t-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-container {
        max-width: 95%;
    }
}

.t-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.t-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.t-meta {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.t-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* Awards */
.awards-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.awards-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.award-item:hover {
    opacity: 1;
}

.award-icon {
    width: 64px;
    filter: grayscale(1) invert(1);
}

/* CTA Section */
.cta-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 5rem;
    border-radius: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .cta-content {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Selection Grids */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.selection-grid.mini {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.selection-item {
    position: relative;
    cursor: pointer;
}

.selection-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.selection-item span {
    display: block;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
}

.selection-item:hover span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.selection-item input:checked+span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.w-full {
    width: 100%;
}

/* Footer */
.footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

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

.footer-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer .logo-img {
    height: 60px;
}

@media (max-width: 1024px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Thank You Card */
.thank-you-card {
    padding: 5rem 3rem;
    text-align: center;
    border-radius: 3rem;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.thank-you-card h3 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.thank-you-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.btn.small {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}