/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* =========================================
   2. Utility Classes & Animations
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background-color: #f1f5f9;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.glow-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Floating Shapes */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #818cf8;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #f472b6;
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #34d399;
    top: 40%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   3. Navigation
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo .accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: var(--transition);
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    padding: 24px 32px;
    text-align: center;
    min-width: 180px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* =========================================
   5. Services Section
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.feature-list li::before {
    content: '✓';
    margin-right: 4px;
}

/* =========================================
   6. Process Timeline
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.timeline-content {
    padding: 24px;
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 8px;
}

/* =========================================
   7. Portfolio (CSS Placeholders)
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.css-placeholder {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.placeholder-1 {
    background: linear-gradient(45deg, #1e293b, #334155);
    position: relative;
}
.placeholder-1::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.placeholder-2 {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    position: relative;
}
.placeholder-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: rgba(255,255,255,0.1);
    border-top-left-radius: 100%;
}

.placeholder-3 {
    background: linear-gradient(45deg, #059669, #10b981);
    position: relative;
}
.placeholder-3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .css-placeholder {
    transform: scale(1.05);
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   8. Article Section (Premium Publication)
   ========================================= */
.article-container {
    max-width: 800px;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
}

.article-category {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin: 16px 0;
    line-height: 1.2;
}

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

.article-content {
    font-size: 1.1rem;
    color: #334155;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 48px 0 24px;
    color: var(--text-main);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 32px 0 16px;
    color: var(--text-main);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

.callout-box {
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid;
}

.callout-box.info {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
}

.callout-box.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: #f59e0b;
}

.styled-list {
    margin: 24px 0;
    padding-left: 24px;
}

.styled-list li {
    margin-bottom: 12px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
}

.premium-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 40px 0;
}

.premium-quote footer {
    font-size: 1rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 600;
}

/* =========================================
   9. FAQ Section
   ========================================= */
.faq-section {
    margin-top: 48px;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* =========================================
   10. Testimonials
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rating {
    color: #fbbf24;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================
   11. Contact Section
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info, .contact-form-wrapper {
    padding: 40px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.5);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* =========================================
   12. Footer
   ========================================= */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-col h3 .accent {
    color: #818cf8;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons span {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.social-icons span:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   13. Responsive Design
   ========================================= */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger { display: flex; }
    .nav-cta { display: none; }
    
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; align-items: center; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}

/* Animation Utilities */
.animate-fade-in { animation: fadeIn 1s ease-out forwards; opacity: 0; }
.animate-fade-in-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}