/* style.css - Upgraded Premium Aesthetic */
:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    /* Layout */
    --container-width: 1280px;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

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

.site-title {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.main-navigation a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 4px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-main);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

/* Typography & General Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* 1. Hero Section */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    padding: 160px 20px 140px;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

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

.hero-section p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 2. About Us Section (Glassmorphism) */
.about-section {
    background-color: var(--bg-alt);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 3. Services Grid */
.services-section {
    background: var(--bg-main);
}

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

.card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.card:hover .card-icon {
    background: var(--primary);
    color: white;
}

.card h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
}

/* 4. Portfolio Section */
.portfolio-section {
    background: var(--bg-alt);
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e2e8f0;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-category {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

/* 5. Testimonials Section */
.testimonials-section {
    background: var(--bg-main);
}

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

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.stars {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
}

.author-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* 6. Call to Action Section */
.cta-section {
    background: var(--gradient-dark);
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-section .btn {
    background: white;
    color: var(--bg-dark);
}

.cta-section .btn:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 700;
    color: white;
}

.footer-col p {
    opacity: 0.7;
    margin-bottom: 16px;
}

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

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

.footer-col ul a {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-col ul a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 48px;
    }
    .cta-section h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 20px;
    }
    .main-navigation.is-active ul {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-section {
        padding: 120px 20px 100px;
    }
    .hero-section h1 {
        font-size: 36px;
    }
    .hero-section p {
        font-size: 18px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .section-title {
        font-size: 32px;
    }
}

/* FAQ Section Styles */
.faq-section {
    background-color: var(--bg-main);
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

details.faq-item {
    background: var(--bg-alt);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

details.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.2);
}

details.faq-item summary {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

details.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

details.faq-item p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}
