@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-bg: #0A192F;
    --secondary-bg: #112240;
    --navy-light: #233554;
    --cyan: #64FFDA;
    --cyan-glow: rgba(100, 255, 218, 0.3);
    --slate: #8892B0;
    --light-slate: #A8B2D1;
    --lightest-white: #CCD6F6;
    --white: #E6F1FF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(100, 255, 218, 0.15);
    --card-bg: rgba(17, 34, 64, 0.6);
}

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

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

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(204, 214, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 214, 246, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo img, .footer-logo img {
    mix-blend-mode: screen;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--lightest-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--cyan);
}

.btn-primary {
    background: rgba(100, 255, 218, 0.05);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--cyan-glow);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
}

.hero-tagline {
    color: var(--cyan);
    font-family: var(--font-body);
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(2, 12, 27, 0.9), 0 0 10px rgba(100, 255, 218, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-title span {
    background: linear-gradient(90deg, var(--white) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--slate);
}

/* Section Common */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--lightest-white);
    font-size: clamp(2rem, 5vw, 3rem);
    white-space: nowrap;
    position: relative;
}

.section-header h2::before {
    content: '///';
    color: var(--cyan);
    margin-right: 15px;
    font-size: 0.8em;
    opacity: 0.8;
}

.section-header .line {
    height: 1px;
    background: linear-gradient(90deg, var(--navy-light) 0%, transparent 100%);
    flex-grow: 1;
    max-width: 400px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(100, 255, 218, 0.5);
    background: rgba(17, 34, 64, 0.85);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.8), inset 0 0 0 1px rgba(100, 255, 218, 0.2);
}

.pricing-card.recommended::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cyan), transparent, var(--cyan));
    background-size: 200% 200%;
    animation: gradient-border 3s linear infinite;
    z-index: -1;
    border-radius: 18px;
    opacity: 0.3;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pricing-card .badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--cyan-glow);
    color: var(--cyan);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tier-name {
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tier-price {
    font-size: 3rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.tier-features {
    list-style: none;
    margin-top: 1rem;
}

.tier-features li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--light-slate);
}

.tier-features li::before {
    content: '▹';
    color: var(--cyan);
    font-weight: bold;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 15px 30px -10px rgba(2, 12, 27, 0.8);
}

.portfolio-item .img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    color: var(--cyan);
    font-size: 0.9rem;
}

/* Workflow Section */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.step {
    text-align: left;
    transition: var(--transition);
}

.step-number {
    font-size: 6rem;
    font-family: var(--font-heading);
    background: linear-gradient(180deg, var(--cyan) 0%, rgba(10, 25, 47, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    line-height: 0.8;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 800;
    transition: all 0.4s ease;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.step:hover .step-number {
    opacity: 0.6;
    transform: translateY(-10px) rotate(-2deg);
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.step h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Contact Form */
.contact-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--lightest-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid var(--navy-light);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select option {
    background: var(--primary-bg);
    color: var(--white);
}

.form-group textarea {
    resize: none;
    overflow-y: auto;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(10, 25, 47, 0.8);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate);
    opacity: 0.5;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--navy-light);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: var(--light-slate);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--cyan);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: var(--primary-bg);
}

/* Hidden Fields */
.hidden-fields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0;
}

.hidden-fields.active {
    max-height: 300px;
    opacity: 1;
    padding-top: 0.5rem;
}

/* Footer Control */
footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--navy-light);
    text-align: center;
}

.footer-logo {
    margin-bottom: 3rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--slate);
    margin-top: 4rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .container {
        padding: 0 1.5rem;
    }
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
    section {
        padding: 80px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .portfolio-item .img-wrapper {
        height: 200px;
    }
    .hidden-fields.active {
        max-height: 400px;
    }
}
