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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --gradient-3: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 500;
        letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient-1);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeIn 1s ease;
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s backwards;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Image/Cards */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* hide old floating card elements if still present */
.floating-card {
    display: none !important;
}

/* new hero visual */
.hero-visual {
    width: 100%;
    max-width: 700px;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(2,6,23,0.6);
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), filter 0.4s ease;
    transform: translateY(10px);
    opacity: 0;
    animation: heroImageIn 0.9s ease 0.25s forwards;
}

/* subtle hover effect on large screens */
@media (hover: hover) and (pointer: fine) {
    .hero-visual:hover {
        transform: scale(1.03);
        filter: saturate(1.05) brightness(1.02);
    }
}

@keyframes heroImageIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments for hero visual */
@media (max-width: 968px) {
    .hero-image {
        height: 420px;
        margin-top: 0;
    }

    .hero-visual {
        max-width: 600px;
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 320px;
        order: -1;
    }

    .hero-visual {
        max-width: 520px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 220px;
    }

    .hero-visual {
        max-width: 420px;
        border-radius: 12px;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text > p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.about-visual {
    position: relative;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    background: var(--gradient-1);
    transform: scale(1.05);
    border-color: transparent;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.cta .btn-secondary {
    border-color: var(--white);
    background: transparent;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Founder Section */
.founder-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent 40%);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.founder-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 0;
}

.founder-photo img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(2,6,23,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s ease, filter 0.4s ease;
    transform: translateY(8px);
    opacity: 0;
    animation: founderImageIn 0.8s ease 0.15s forwards;
}

@keyframes founderImageIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.founder-info {
    color: var(--white);
}

.founder-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-role {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-bio {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.founder-cta .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
}

/* small hover polish for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .founder-photo img:hover {
        transform: translateY(-4px) scale(1.01);
        filter: saturate(1.03);
    }
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .founder-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }

    .founder-photo {
        max-width: 260px;
        margin: 0 auto;
    }

    .founder-info {
        padding: 0 1rem;
    }

    .founder-name {
        font-size: 1.5rem;
    }
}

/* ensure founder CTA opens same modal when clicked (if present) */
#openFormBtnFromFounder {
    display: inline-block;
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 1rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10001;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: var(--gray);
    font-size: 1rem;
}

.modal-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Button cursor pointer */
button {
    cursor: pointer;
}

/* Hide Typeform persistent branding injected by the embed */
[data-qa="branding"],
.persistent-footerbrandingcomponent__Branding-sc-1pgumc-0,
.persistent-footerbrandingcomponent__BrandingAnchor-sc-1pgumc-1,
[data-qa="branding"] * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 968px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .hero-container,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image {
        height: 400px;
        order: -1;
    }

    .card-1 {
        width: 250px;
        height: 170px;
        top: 30px;
        left: 30px;
    }

    .card-2 {
        width: 200px;
        height: 150px;
        top: 150px;
        left: 150px;
    }

    .card-3 {
        width: 180px;
        height: 130px;
        top: 80px;
        left: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text > p {
        font-size: 1rem;
    }

    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 140px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .btn-nav {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        height: 300px;
    }

    .card-1 {
        width: 200px;
        height: 140px;
        top: 20px;
        left: 20px;
    }

    .card-2 {
        width: 170px;
        height: 120px;
        top: 120px;
        left: 120px;
    }

    .card-3 {
        width: 150px;
        height: 110px;
        top: 60px;
        left: 200px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .featured-badge {
        top: 15px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .about {
        padding: 4rem 0;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .features-list {
        gap: 1.2rem;
    }

    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }

    .tech-item {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .cta {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }

    .nav-links li {
        flex: 1;
    }

    .nav-links a {
        font-size: 0.8rem;
        display: block;
        text-align: center;
    }

    .btn-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-image {
        height: 250px;
    }

    .card-1 {
        width: 160px;
        height: 110px;
        top: 15px;
        left: 15px;
    }

    .card-2 {
        width: 140px;
        height: 100px;
        top: 90px;
        left: 90px;
    }

    .card-3 {
        width: 120px;
        height: 90px;
        top: 50px;
        left: 150px;
    }

    .stats {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .services {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 25px;
        height: 25px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-features li {
        font-size: 0.85rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text > p {
        font-size: 0.95rem;
    }

    .feature-item {
        gap: 0.8rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    .tech-stack {
        gap: 0.8rem;
    }

    .tech-item {
        padding: 1.2rem;
        font-size: 0.85rem;
    }

    .cta-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-column ul li {
        font-size: 0.9rem;
    }

    .modal-content {
        width: 98%;
        max-width: none;
        border-radius: 15px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-header p {
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 120px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-image {
        height: 200px;
    }

    .card-1 {
        width: 130px;
        height: 90px;
    }

    .card-2 {
        width: 110px;
        height: 80px;
        top: 70px;
        left: 70px;
    }

    .card-3 {
        width: 100px;
        height: 75px;
        top: 40px;
        left: 120px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Tablet specific (Portrait and Landscape) */
@media (min-width: 641px) and (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-buttons {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }
}

/* Large tablets and small laptops */
@media (min-width: 969px) and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .modal,
    .cta {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
