/* style.css */
:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-light: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-orange: #fb923c;
    --accent-rose: #fb7185;
    --gradient-accent: linear-gradient(135deg, var(--accent-orange), var(--accent-rose));
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}
.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-light);
    border-top-color: var(--accent-rose);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: float 25s infinite alternate ease-in-out;
}
.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-orange);
    top: -150px;
    left: -150px;
}
.shape-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-rose);
    bottom: -250px;
    right: -150px;
    animation-delay: -5s;
}
.shape-3 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

p {
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: -0.01em;
}
.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(251, 113, 133, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -6px rgba(251, 113, 133, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.full-width {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}
header.scrolled {
    padding: 16px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.nav-menu {
    display: flex;
    gap: 36px;
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Sections General */
section {
    padding: 120px 0;
}
.section-header {
    margin-bottom: 70px;
}
.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
    margin-top: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}
.hero-content {
    max-width: 860px;
}
.subtitle {
    display: inline-block;
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.main-heading {
    font-size: clamp(3.5rem, 8vw, 6rem);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 640px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}
.stats {
    display: flex;
    gap: 40px;
}
.stat-item h3 {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
.about-skills h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.skill-tag {
    background: var(--surface-color);
    border: var(--glass-border);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}
.skill-tag:hover {
    background: var(--surface-light);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--surface-color);
    border: var(--glass-border);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-soft);
}
.service-card:hover::before {
    opacity: 1;
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}
.portfolio-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: var(--glass-border);
    transition: var(--transition);
}
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-soft);
}
.portfolio-img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}
.portfolio-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: var(--transition);
}
.portfolio-card:hover .portfolio-img-wrapper::after {
    opacity: 1;
}
.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}
.portfolio-content {
    padding: 32px;
}
.portfolio-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: center;
}
.feature-item {
    padding: 32px 24px;
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.feature-item:hover {
    background: var(--surface-light);
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.feature-item h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: var(--surface-color);
    border: var(--glass-border);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}
.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, var(--surface-color) 100%);
    border-color: rgba(251, 113, 133, 0.3);
    transform: scale(1.02);
}
.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-6px);
}
.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(251, 113, 133, 0.4);
}
.pricing-card h3 {
    font-size: 1.4rem;
}
.price {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 24px 0 12px;
}
.pricing-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    min-height: 48px;
}
.pricing-features {
    list-style: none;
    margin-bottom: 40px;
}
.pricing-features li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.pricing-features li::before {
    content: '✓';
    color: var(--accent-orange);
    margin-right: 12px;
    font-weight: bold;
}
.pricing-features li:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--surface-color);
    border: var(--glass-border);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    background: var(--surface-light);
}
.stars {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: 24px;
    letter-spacing: 2px;
}
.quote {
    color: var(--text-primary);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.client-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.client-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}
.client-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}
.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.05rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}
.contact-item .icon {
    font-size: 1.5rem;
    background: var(--surface-light);
    padding: 16px;
    border-radius: 16px;
    border: var(--glass-border);
}
.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.contact-item p {
    color: var(--text-secondary);
}

.contact-form-container {
    background: var(--surface-color);
    padding: 48px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: var(--surface-light);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1);
}

/* Footer */
footer {
    border-top: var(--glass-border);
    padding: 80px 0 40px;
    background: var(--surface-color);
}
.footer-content {
    text-align: center;
    margin-bottom: 60px;
}
.footer-content .logo {
    display: inline-block;
    margin-bottom: 12px;
}
.footer-email {
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-block;
    margin-top: 16px;
    font-size: 1.1rem;
}
.footer-email:hover {
    color: var(--accent-rose);
}
.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--surface-light);
    border: var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--surface-color);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Utilities for JS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 992px) {
    .contact-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .main-heading {
        font-size: clamp(3rem, 7vw, 4rem);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .stats {
        flex-direction: column;
        gap: 24px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    section {
        padding: 80px 0;
    }
    .contact-form-container {
        padding: 32px 24px;
    }
}
