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

* {
    cursor: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.font-mono { font-family: 'Fira Code', monospace; }
.font-display { font-family: 'Space Grotesk', sans-serif; }

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(56, 189, 248, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 80px;
    height: 80px;
    background-color: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #38bdf8, #a855f7, #38bdf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    to { background-position: 200% center; }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: #1e293b;
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 2px;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    width: 0%;
    animation: load 2s ease-out forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    z-index: 9999;
    transform-origin: left;
    width: 0%;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #334155;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
    cursor: pointer;
}

.lang-btn.active {
    background: #38bdf8;
    color: white;
}

.lang-btn:hover:not(.active) {
    color: white;
}

.flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

/* Glass Effect */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

#home{
    padding-top: 15rem;
}



/* Hero Image Container */
.hero-image-container {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skill Card */
.skill-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.3);
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.project-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Filter Buttons */
.filter-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.filter-btn.active {
    background: #38bdf8;
    color: white;
    border-color: #38bdf8;
}

.filter-btn:not(.active) {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}

.filter-btn:not(.active):hover {
    color: white;
    border-color: #475569;
}

/* Code Editor with Syntax Highlighting */
.code-editor {
    background: #1e1e1e;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    border-radius: 8px 0 0 8px;
    min-height: 300px;
    outline: none;
    overflow: auto;
    white-space: pre;
}

.code-line {
    display: flex;
}

.line-number {
    color: #858585;
    width: 30px;
    text-align: right;
    margin-right: 16px;
    user-select: none;
}

.code-content {
    flex: 1;
}

/* Syntax Colors */
.syntax-keyword { color: #c586c0; }      /* purple - const, let, function */
.syntax-function { color: #dcdcaa; }     /* yellow - function names */
.syntax-string { color: #ce9178; }       /* orange - strings */
.syntax-comment { color: #6a9955; }      /* green - comments */
.syntax-number { color: #b5cea8; }       /* light green - numbers */
.syntax-operator { color: #d4d4d4; }     /* white - operators */
.syntax-property { color: #9cdcfe; }     /* light blue - properties */
.syntax-tag { color: #569cd6; }          /* blue - HTML tags */
.syntax-attribute { color: #9cdcfe; }    /* light blue - attributes */

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid #1e293b;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Pricing Cards */
.pricing-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
}

.pricing-card.featured {
    border-color: #38bdf8;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #334155;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #1e293b;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding: 0 20px 20px;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Blog Card */
.blog-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

/* Client Logos - Fixed Infinite Scroll */
.logos-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    font-size: 24px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    transition: color 0.3s;
}

.logo-item:hover {
    color: white;
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 9999px;
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 500;
}

.availability-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Stats Counter */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Command Palette */
.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.command-palette.active {
    display: flex;
}

.command-box {
    width: 100%;
    max-width: 600px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
}

.command-input {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.command-list {
    max-height: 400px;
    overflow-y: auto;
}

.command-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.command-item:hover,
.command-item.selected {
    background: #334155;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid #38bdf8; }

/* Calendly Badge */
.calendly-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    transition: all 0.3s;
}

.calendly-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #38bdf8;
    color: white;
    padding: 8px 16px;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Case Study Cards */
.case-study-small {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.case-study-small:hover {
    border-color: #38bdf8;
    transform: translateY(-5px);
}


/* Mobile Language Switcher */
.mobile-lang-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    transition: all 0.2s;
    cursor: pointer;
}

.mobile-lang-btn.active {
    background: #38bdf8;
    color: white;
    border-color: #38bdf8;
}

.mobile-lang-btn:hover:not(.active) {
    color: white;
    border-color: #475569;
}

/* Navigation redesign - cleaner, more professional */
.nav-link {
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active-link {
    color: #f8fafc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: all 0.2s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-inner {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Code Playground Textarea */
.code-textarea {
    width: 100%;
    min-height: 300px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    border: none;
    outline: none;
    resize: vertical;
    tab-size: 2;
}

/* ============================================
   RESPONSIVE DESIGN - ALL DEVICES
   ============================================ */

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* Extra Small Devices - Small Phones (Portrait) - 320px to 374px */
@media screen and (max-width: 374px) {
    .preloader-text {
        font-size: 2rem;
    }
    
    .loader-bar {
        width: 150px;
    }
    
    #home {
        padding-top: 8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .command-box {
        max-width: 95%;
        margin: 0 10px;
    }
    
    .command-input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .toast {
        min-width: 250px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .calendly-badge {
        bottom: 10px;
        right: 10px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .accordion-header {
        padding: 16px;
        font-size: 14px;
    }
    
    .accordion-content.active {
        padding: 0 16px 16px;
    }
    
    .logo-item {
        padding: 0 20px;
        font-size: 18px;
    }
    
    .code-editor {
        font-size: 12px;
        padding: 16px;
        min-height: 250px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .lang-selector {
        padding: 4px 8px;
    }
    
    .lang-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* Small Devices - Phones (Portrait) - 375px to 479px */
@media screen and (min-width: 375px) and (max-width: 479px) {
    .preloader-text {
        font-size: 2.5rem;
    }
    
    #home {
        padding-top: 9rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .command-box {
        max-width: 90%;
    }
    
    .toast {
        min-width: 280px;
    }
    
    .logo-item {
        font-size: 20px;
    }
    
    .code-editor {
        font-size: 13px;
    }
}

/* Medium Devices - Large Phones (Portrait) - 480px to 575px */
@media screen and (min-width: 480px) and (max-width: 575px) {
    .preloader-text {
        font-size: 3rem;
    }
    
    #home {
        padding-top: 10rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .command-box {
        max-width: 85%;
    }
}

/* Small Devices - Phones (Landscape) - 576px to 767px */
@media screen and (min-width: 576px) and (max-width: 767px) and (orientation: landscape) {
    .preloader-text {
        font-size: 2.5rem;
    }
    
    #home {
        padding-top: 6rem;
    }
    
    .command-palette {
        padding-top: 10vh;
    }
    
    .command-box {
        max-width: 80%;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* Medium Devices - Tablets (Portrait) - 768px to 991px */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .preloader-text {
        font-size: 3.5rem;
    }
    
    #home {
        padding-top: 11rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .command-box {
        max-width: 70%;
    }
    
    .pricing-card {
        padding: 28px;
    }
    
    .code-editor {
        font-size: 13px;
    }
    
    .logo-item {
        font-size: 22px;
    }
}

/* Large Devices - Tablets (Landscape) / Small Laptops - 992px to 1199px */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .preloader-text {
        font-size: 3.75rem;
    }
    
    #home {
        padding-top: 12rem;
    }
    
    .stat-number {
        font-size: 3.75rem;
    }
    
    .command-box {
        max-width: 65%;
    }
    
    .pricing-card {
        padding: 30px;
    }
}

/* Extra Large Devices - Laptops - 1200px to 1399px */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .preloader-text {
        font-size: 4rem;
    }
    
    #home {
        padding-top: 13rem;
    }
    
    .stat-number {
        font-size: 4rem;
    }
    
    .command-box {
        max-width: 600px;
    }
}

/* XXL Devices - Desktops - 1400px to 1599px */
@media screen and (min-width: 1400px) and (max-width: 1599px) {
    .preloader-text {
        font-size: 4.5rem;
    }
    
    #home {
        padding-top: 14rem;
    }
    
    .stat-number {
        font-size: 4.5rem;
    }
    
    .command-box {
        max-width: 650px;
    }
    
    .pricing-card {
        padding: 36px;
    }
}

/* XXXL Devices - Large Desktops / Big Screens - 1600px and above */
@media screen and (min-width: 1600px) {
    .preloader-text {
        font-size: 5rem;
    }
    
    #home {
        padding-top: 15rem;
    }
    
    .stat-number {
        font-size: 5rem;
    }
    
    .command-box {
        max-width: 700px;
    }
    
    .pricing-card {
        padding: 40px;
    }
    
    .code-editor {
        font-size: 15px;
        padding: 24px;
    }
    
    .logo-item {
        font-size: 26px;
        padding: 0 50px;
    }
}

/* Height-based adjustments for landscape mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .preloader-text {
        font-size: 2rem;
    }
    
    .loader-bar {
        width: 150px;
        margin-top: 1rem;
    }
    
    #home {
        padding-top: 5rem;
    }
    
    .command-palette {
        padding-top: 5vh;
    }
    
    .command-box {
        max-width: 90%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .magnetic-btn {
        transition: transform 0.2s;
    }
    
    .skill-card:hover,
    .blog-card:hover,
    .case-study-small:hover,
    .project-card:hover .project-overlay {
        transform: none;
    }
    
    .filter-btn:not(.active):hover {
        color: #94a3b8;
        border-color: #334155;
    }
    
    .pricing-card:hover {
        transform: none;
    }
    
    .calendly-badge:hover {
        transform: none;
    }
    
    /* Increase touch target sizes */
    .lang-btn,
    .filter-btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .command-item {
        min-height: 48px;
    }
    
    .accordion-header {
        min-height: 48px;
    }
}

/* Print styles */
@media print {
    .preloader,
    .cursor-dot,
    .cursor-outline,
    .scroll-progress,
    .command-palette,
    .toast-container,
    .calendly-badge,
    #webgl-canvas {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cursor-dot {
        width: 6px;
        height: 6px;
    }
    
    .cursor-outline {
        width: 36px;
        height: 36px;
    }
    
    .cursor-outline.hover {
        width: 72px;
        height: 72px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-image-container,
    .preloader-text,
    .loader-progress {
        animation: none !important;
        transition: none !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-image-container {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as default, but can be customized here */
}

/* Container max-width adjustments for very small screens */
@media screen and (max-width: 640px) {
    .max-w-7xl,
    .max-w-6xl,
    .max-w-4xl,
    .max-w-3xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Grid adjustments for mobile */
@media screen and (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .md\:grid-cols-2,
    .md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Flex direction adjustments for mobile */
@media screen and (max-width: 767px) {
    .flex-row {
        flex-direction: column;
    }
    
    .md\:flex-row {
        flex-direction: column;
    }
}

/* Text size adjustments */
@media screen and (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    p, span, div {
        font-size: 0.95rem !important;
    }
}

/* Spacing adjustments for mobile */
@media screen and (max-width: 767px) {
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mt-16 {
        margin-top: 2rem !important;
    }
    
    .gap-8 {
        gap: 1.5rem !important;
    }
}

/* Image and media responsiveness */
@media screen and (max-width: 767px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .w-full {
        width: 100% !important;
    }
    
    .h-80 {
        height: 200px !important;
    }
    
    .h-64 {
        height: 180px !important;
    }
    
    .h-48 {
        height: 150px !important;
    }
}

/* Modal responsiveness */
@media screen and (max-width: 767px) {
    .sm\:max-w-4xl {
        max-width: 95% !important;
        margin: 1rem !important;
    }
    
    .sm\:my-8 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .sm\:p-0 {
        padding: 0.5rem !important;
    }
}

/* Form elements responsiveness */
@media screen and (max-width: 640px) {
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px !important;
    }
    
    button {
        font-size: 16px !important;
        padding: 12px 24px !important;
    }
}

/* Navigation menu adjustments */
@media screen and (max-width: 767px) {
    nav {
        padding: 1rem !important;
    }
    
    .hidden {
        display: none !important;
    }
    
    .md\:flex {
        display: none !important;
    }
}

/* Footer responsiveness */
@media screen and (max-width: 767px) {
    footer {
        padding: 2rem 1rem !important;
        text-align: center !important;
    }
    
    footer .flex {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
}

/* Code editor responsiveness */
@media screen and (max-width: 1023px) {
    .md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .code-editor {
        border-radius: 8px 8px 0 0 !important;
    }
    
    #codePreview {
        border-radius: 0 0 8px 8px !important;
    }
}

/* Timeline responsiveness */
@media screen and (max-width: 767px) {
    .timeline-item {
        padding-left: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .timeline-item::before {
        left: -5px;
        width: 8px;
        height: 8px;
    }
}
/* Code playground textarea - prevent mobile font override */
.code-playground-textarea {
    font-size: 14px !important;
    -webkit-text-size-adjust: none;
}

@media screen and (max-width: 640px) {
    .code-playground-textarea {
        font-size: 13px !important;
        padding: 12px !important;
        min-height: 200px !important;
    }
}
