/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === Utilities === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }
.section-tag { display: inline-block; font-size: 0.85rem; font-weight: 600; color: #6c63ff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: #666; font-size: 1.1rem; }
.gradient-text { background: linear-gradient(135deg, #6c63ff, #e942f5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === Buttons === */
.btn { display: inline-block; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #6c63ff, #e942f5); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,99,255,0.3); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: #1a1a2e; }

/* === Navbar === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.3s; }
.navbar.scrolled { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.08); padding: 12px 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.navbar.scrolled .logo { color: #1a1a2e; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.navbar.scrolled .nav-menu a { color: #555; }
.nav-menu a:hover { color: #6c63ff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: #fff; transition: all 0.3s; }
.navbar.scrolled .nav-toggle span { background: #1a1a2e; }

/* === Hero === */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(108,99,255,0.15) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(233,66,245,0.1) 0%, transparent 50%); }
.hero-content { position: relative; max-width: 700px; }
.hero-tag { display: inline-block; color: #6c63ff; font-weight: 600; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.15rem; margin-bottom: 35px; max-width: 550px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* === Features === */
.features { padding: 100px 0; background: #f8f9ff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { background: #fff; padding: 40px 30px; border-radius: 16px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(108,99,255,0.1); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, #6c63ff, #e942f5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: #666; font-size: 0.9rem; }

/* === About === */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #6c63ff, #e942f5); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4rem; }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 20px; }
.about-content p { color: #555; margin-bottom: 15px; }
.about-content .btn { margin-top: 15px; }

/* === Services === */
.services { padding: 100px 0; background: #f8f9ff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #fff; padding: 40px; border-radius: 16px; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(108,99,255,0.1); }
.service-num { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #6c63ff, #e942f5); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.service-card h3 { font-size: 1.3rem; margin: 10px 0; }
.service-card p { color: #666; font-size: 0.95rem; }

/* === Portfolio === */
.portfolio { padding: 100px 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.portfolio-item { border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; }
.portfolio-placeholder { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; transition: transform 0.4s; }
.portfolio-item:hover .portfolio-placeholder { transform: scale(1.05); }
.portfolio-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.portfolio-info h4 { font-size: 1.1rem; }
.portfolio-info span { font-size: 0.85rem; opacity: 0.8; }

/* === Stats === */
.stats { padding: 80px 0; background: linear-gradient(135deg, #0f0c29, #302b63); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #fff; margin-bottom: 5px; }
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* === Team === */
.team { padding: 100px 0; background: #f8f9ff; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-card { background: #fff; padding: 40px 20px; border-radius: 16px; text-align: center; transition: transform 0.3s; }
.team-card:hover { transform: translateY(-5px); }
.team-avatar { width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, #6c63ff, #e942f5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; }
.team-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
.team-card span { color: #6c63ff; font-size: 0.85rem; font-weight: 500; }

/* === Blog === */
.blog { padding: 100px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-img-placeholder { height: 200px; }
.blog-content { padding: 25px; }
.blog-date { font-size: 0.8rem; color: #999; }
.blog-content h4 { font-size: 1.15rem; margin: 8px 0; }
.blog-content p { color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.blog-link { color: #6c63ff; font-weight: 600; font-size: 0.9rem; }
.blog-link i { margin-left: 5px; transition: transform 0.3s; }
.blog-link:hover i { transform: translateX(5px); }

/* === Contact === */
.contact { padding: 100px 0; background: #f8f9ff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #6c63ff, #e942f5); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.contact-item h4 { font-size: 1rem; margin-bottom: 5px; }
.contact-item p { color: #666; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 20px; border: 1px solid #e0e0e0; border-radius: 10px; font-family: inherit; font-size: 0.95rem; margin-bottom: 15px; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #6c63ff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* === Footer === */
.footer { background: #0f0c29; color: #fff; padding: 80px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links h4 { font-size: 1rem; margin-bottom: 15px; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 8px; transition: color 0.3s; }
.footer-links a:hover { color: #6c63ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* === Page Header (Legal pages) === */
.page-header { padding: 150px 0 60px; background: linear-gradient(135deg, #0f0c29, #302b63); text-align: center; color: #fff; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.7); }

/* === Legal Content === */
.legal-content { padding: 80px 0; }
.legal-content h3 { font-size: 1.2rem; margin: 30px 0 10px; color: #1a1a2e; }
.legal-content p { color: #555; margin-bottom: 12px; }
.legal-content a { color: #6c63ff; font-weight: 500; }

/* === Scroll Top === */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #6c63ff, #e942f5); color: #fff; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.scroll-top.visible { opacity: 1; visibility: visible; }

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid, .stats-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #fff; flex-direction: column; padding: 80px 30px; gap: 20px; transition: right 0.3s; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
    .nav-menu.active { right: 0; }
    .nav-menu a { color: #333 !important; font-size: 1.1rem; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .features-grid, .services-grid, .portfolio-grid, .blog-grid { grid-template-columns: 1fr; }
    .stats-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .stats-grid, .team-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; }
}
