@import 'variables.css';

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1 {
    font-family: var(--font-heading);
    font-weight: 800; /* Heavy weight for primary value props */
    line-height: 1.1;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-serif); /* Serif for sub-headlines */
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-white { color: #fff; }
.lead { font-size: 1.25rem; font-weight: 300; }
.p-5 { padding: 3rem; }
.gap-4 { gap: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-accent { color: var(--accent-color); }
.text-primary { color: var(--primary-color); }
.text-success { color: #28a745; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.text-left { text-align: left; }
.mt-4 { margin-top: 1.5rem; }
.mt-40 { margin-top: 40px; }
.font-medium { font-weight: 500; }
.full-width { width: 100%; }
.bg-light { background-color: var(--bg-light); }
.rounded-lg { border-radius: var(--border-radius-sm); }
.shadow-lg { box-shadow: var(--box-shadow-hover); }
.align-center { align-items: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.font-bold { font-weight: 700; }

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

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.btn-primary:hover {
    background-color: #6D28D9; /* slightly darker violet */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(70, 0, 117, 0.39);
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(0,0,0,0.1);
}

/* Components: Cards */
.card, .pricing-card, .service-card, .blog-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px; /* Generous padding */
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03); /* Very thin border */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg); /* 24px specifically requested */
    padding: 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover, .feature-card:hover, .pricing-card:hover, .service-card:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.hero-img-style {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    width: 100%;
}

/* Section Header */
.section-title {
    font-family: var(--font-heading); /* Exception: Use Heading font for main section titles */
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.7); /* More transparency for glassmorphism */
    backdrop-filter: blur(20px); /* Stronger blur */
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-color);
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #fff;
    background: var(--mesh-gradient-primary); /* Soft Mesh Gradient */
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-align: left;
    margin-top: -90px;
    padding-top: 150px;
}

.hero h1 {
    font-size: 4.5rem; /* Large Headline */
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-shadow: none;
    line-height: 1.1;
}

.hero p {
    font-family: var(--font-body);
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    text-shadow: none;
}

/* Page Header for Inner Pages */
.page-header {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), var(--mesh-gradient-primary), url('https://images.unsplash.com/photo-1544197150-b99a580bbcbf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, overlay, normal;
    padding: 180px 0 100px;
    color: #fff;
    text-align: center;
    margin-top: -90px;
}

.page-header h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-family: var(--font-serif);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--bg-color); /* Clean Canvas */
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    background-color: rgba(124, 58, 237, 0.1); /* Light purple background */
    border: 2px solid rgba(124, 58, 237, 0.2); /* Dark purple outline effect */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px; /* Softer square */
}

.feature-card h3 {
    color: var(--text-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Services Preview */
.services-preview {
    padding: 100px 0;
    background: var(--bg-light); /* Slight contrast */
}

.service-image {
    height: 280px;
    overflow: hidden;
    margin: 20px 20px 0 20px;
    border-radius: 16px; /* 16px border radius as requested */
}

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

.service-card {
    padding: 0;
}
.service-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.service-content h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-serif); /* Instrument Serif / Playfair */
    font-size: 2rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: var(--cta-bg); /* Midnight Purple */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"), linear-gradient(to bottom, var(--cta-bg), #0F0E24);
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.4rem;
    margin-bottom: 3rem;
}

.btn-cta {
    background-color: var(--cta-btn); /* Neon Green/Cyan */
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(0, 212, 255, 0.4);
}

.btn-cta:hover {
    background-color: #33DDFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
}

/* Footer */
footer {
    background-color: #111; /* Dark footer for contrast */
    color: #fff;
    padding: 80px 0 30px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: var(--font-heading);
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 4px;
}

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

/* Pricing Cards */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.pricing-card {
    text-align: center;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px -5px rgba(70, 0, 117, 0.15);
}

.badge-popular {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 20px 0;
    line-height: 1;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

.pricing-features li {
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    text-align: left;
}

.pricing-features li i {
    color: var(--secondary-color);
}

/* Blog Styles */
.blog-section { padding: 100px 0; background-color: var(--bg-light); }
.blog-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.blog-date {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Form Styles */
.form-control {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: #FAFAFA;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(70, 0, 117, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - 90px);
        padding: 40px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        align-items: flex-start;
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; margin: 10px 0; }
    .nav-link { font-size: 1.25rem; display: block; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
    .hero h1 { font-size: 3rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .section-title { font-size: 2.25rem; }
}
