/* CSS Custom Properties (Variables) */
:root {
    --color-dark:    #383838;    /* Headings, main dark */
    --color-mid:     #525252;    /* Body, subheadings */
    --color-muted:   #545454;    /* Muted text, placeholders */
    --color-border:  #E2E2E2;    /* Borders, dividers */

    --color-light:   #FAF9F6;    /* Off-white text on dark */
    --color-bg:      #faf9f6;    /* Creamy background */
    
    /* Keep universal colors */
    --color-white: #fff;
    --color-black: #222;
}


/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: .875rem;              /* 16px */
    line-height: 1.25;
    color: var(--color-mid);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 1rem;
   

}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);   /* 24px – 40px */
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    
}

h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);     /* 19.2px – 32px */
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: .5rem;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1rem, 2vw, 1.35rem);     /* 16px – 24px */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(0.9rem, 1.5vw, 1.125rem);/* 14.4px – 20px */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h5, h6 {
    font-size: 1rem;                         /* 16px */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Paragraph and Lists */
p, ul, ol, table, figure {
    margin-bottom: 1.25rem;
}



ul, ol {
    margin-left: 1.5rem;
    
}



small {
    font-size: 0.875rem;                     /* 14px */
   
    line-height: 1.4;
}

a {
    color: var(--color-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-dark);
}

strong, b {
    font-weight: 600;
    color: var(--color-dark);
}

em, i {
    font-style: italic;
    
}

hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 2.5rem 0;
}

/* Forms & Buttons */
button {
    font-family: inherit;
    font-size: .875rem;
    color: var(--color-dark);
 
    background: transparent;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: .75rem;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
                            /* 16px */
}

button:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-muted);
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;                          /* 16px */
    color: var(--color-mid);
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    background: var(--color-light);
    margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-dark);
    box-shadow: 0 0 0 2px rgba(35,35,35,0.08);
}

::placeholder {
    color: var(--color-muted);
}
blockquote {
   
    font-style: normal;
    margin: 0;
    background: none;
}

/* Icon container fix */
.icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Header and Navigation styles moved to Header.astro component */

/* Main Content */
main {
    padding: 0;
    flex: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
    height:90vh;
    padding: 0 5rem;
}

.hero-title .highlight {
    font-family: 'Kalam', cursive;
    color: var(--color-mid);
    transform: rotate(-2deg);   
    font-size: clamp(2.5rem, 5vw, 3rem);   /* 24px – 40px */
    display: inline-block;

}

.eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-mid);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    
}


/* Hero Visual */
.hero-visual {
    display: flex;
    max-width: 400px;
    pointer-events: none; /* Prevents any interaction */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-video {
    width: 100%;
    mix-blend-mode: darken;
    pointer-events: none; /* Prevents any interaction */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hero CTA Section */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    flex-direction: row-reverse;
}

.curved-arrow {
    color: var(--color-dark);
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.cta-button {
    background: none;
    color: var(--color-dark);
    border: none;
    padding: 8px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0,2 Q5,0 10,2 T20,2' stroke='%23383838' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 4px;
    animation: none;
}

.cta-button:hover {
    transform: translateY(-1px);
    background: none;
    border: none;
    color: var(--color-dark);
}

.cta-button:hover::after {
    animation: waveMove 1.5s ease-in-out infinite;
}

.cta-button:active {
    transform: translateY(0);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes waveMove {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 20px;
    }
}

/* Info Section */

.info-content {
    display: flex;
    align-items: center;
   
    
    margin: -20px 30px;
}

/* Desktop styles - wrapper should be invisible */
.info-stats-row {
    display: contents;
}

.info-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-stat-1,
.info-stat-2 {
    width: 20%;
}






.info-quote {
    width: 60%;
    padding-left: 2rem;
}

.info-section .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height:130px;
    width: 100%;
}

.stat-item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    border-right: 1px solid var(--color-border);
    height: 90px;
  

}





.info-section .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
 opacity: .3;
}

.info-section .stat-text {
    display: flex;
    flex-direction: column;
}

span.stat-number {
    font-size: 1.25rem;
}

/* Services Bento Grid */
.services-section {
    padding: 5rem 0;
}

.services-heading {
    text-align: center;
    text-transform: uppercase;
}

.services-description {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.hero-description {
    
    max-width: 400px;
}

.services-section .bento-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(9, 48px);
    gap: 1.25rem;
    height: 100%;
    max-width: 700px;
    margin: 0 auto;
    width: 90%;
}
.service-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border);
}

/* Service Arrow Styles */
.service-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.service-arrow i {
    color: var(--color-dark);
    transform: rotate(-45deg);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .service-arrow {
    background: rgba(51, 51, 51, 0.28);
}

.service-card:hover .service-arrow i {
    color: var(--color-white);
    transform: rotate(45deg);
}

.service-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.service-title {
    text-transform: uppercase;
    font-size: clamp(0.8rem, 1.2vw, 1rem);    /* 12.8px - 16px - Smaller than H4 */
    font-weight: 500;                          /* Slightly lighter weight too */
    margin-bottom: 0.5rem;                     /* Reduce spacing */
}
p.service-subtitle {
    font-size: .75rem;
}

/* Apps Card - 4 columns, 6 rows */
.apps-card {
    grid-column: span 4;
    grid-row: span 6;
    background: var(--color-white);
    
}

/* Websites Card - 6 columns, 6 rows */
.websites-card {
    grid-column: span 6;
    grid-row: span 6;
        background: var(--color-white);
    }

/* Branding Card - 10 columns, 3 rows (bottom) */
.branding-card {
    grid-column: span 10;
    grid-row: span 3;
    background: var(--color-white);
}

/* Animation containers */
.apps-animation,
.websites-animation {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.branding-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.apps-animation {
    width: 100%;
    height: 100%;
}

.websites-animation {
    width: 110px;
    height: 70px;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}
/* Navigation styles moved to Header.astro component */

/* Mobile First Responsive Design - Single 640px Breakpoint */

/* Mobile Styles (up to 640px) */
@media (max-width: 640px) {
    /* Navigation styles moved to Header.astro component */
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 1.5rem 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        height: auto;
        padding: 5rem 1rem;
    }
    
    .hero-text {
        max-width: 100%;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        max-width: 280px;
        margin: 0 auto;
    }
    

    

    

    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .curved-arrow {
        order: 1;
    }
    
    .cta-button {
        order: 2;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
        padding: 1.2rem;
        text-align: center;
    }
    
   
    
    /* Bento Grid Services */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 80px);
    }
    
    
    
    .service-content {
        padding: 1.25rem;
    }
    

    

    
    .services-description {
        padding: 0 1rem;
        max-width: 60%;
        margin-bottom:1.5rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    

    
    
    /* Info Section - Mobile Optimization */
    .info-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;

    }
    
    /* Create a flex container for the two stats */
    .info-stats-row {
        display: flex;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .info-stat-1,
    .info-stat-2 {
        width: 50%; /* Each stat takes half the row */
        flex: 1;
    }
    
    .info-quote {
        width: 100%;
        padding-left: 0;
        order: 3; /* Ensure quote comes after stats */
    }
    
    .info-section .stat-item {
        padding: 1rem 1rem 0 1rem;
        max-width: none; /* Remove max-width constraint */
        margin: 0;
        height: auto; /* Make height flexible */
    }
    
    .stat-item-inner {
        padding: 0 1rem;
        border-right: none; /* Remove border between stats on mobile */
        height: auto;
        min-height: 90px; /* Ensure consistent minimum height */
        position: relative;
    }
    
    /* Add border between the two stats - contained within the stat area */
    .info-stat-1 .stat-item-inner::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: var(--color-border);
        margin-top: 3px;
    }
    
    .tech-quote {
        border-left: none;
       
        padding-left: 0;
      
        text-align: left;
        max-width: 100%;
        height: 120px;
        padding: 0 20px;
    }
    

    
    /* Container adjustments for mobile */
    .container {
        width: 90%;
    }
    
    .services-section .bento-grid {
        padding: 2rem 0.5rem;
        width: 95%;
        max-width: 700px;
    }
    
  
} 

/* Utility Classes */
.border {
    border: 1px solid var(--color-border);
}

.border-v {
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.border-h {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    overflow: hidden;
}

.showcase-row {
    margin-bottom: 50px;
}

/* Arrow Icon Styles */
.showcase-item .arrow-up-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
opacity: .6;
}

.showcase-link:hover .arrow-up-icon {
    transform: translateY(-5px);
}

/* Showcase Track */
