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

:root {
    /* Modern Color System */
    --primary: #0052FF;          /* Vibrant blue */
    --primary-light: #3B82F6;    /* Lighter blue */
    --accent: #10B981;           /* Emerald green */
    --accent-light: #34D399;     /* Light emerald */
    --neutral-900: #0F0F0F;      /* Almost black */
    --neutral-800: #1A1A1A;      /* Dark gray */
    --neutral-700: #2D2D2D;      /* Medium dark */
    --neutral-600: #404040;      /* Medium gray */
    --neutral-500: #737373;      /* Gray */
    --neutral-400: #A3A3A3;      /* Light gray */
    --neutral-300: #D4D4D4;      /* Very light gray */
    --neutral-200: #E5E5E5;      /* Border gray */
    --neutral-100: #F5F5F5;      /* Background gray */
    --neutral-50: #FAFAFA;       /* Off white */
    --white: #FFFFFF;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography System */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-900);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Modern Typography Scale */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    z-index: 1000;
    transition: all 0.2s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--neutral-900);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--neutral-900);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Modern Hero Section - Full Screen */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--neutral-900);
    position: relative;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--white);
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.75rem;
    color: var(--neutral-200);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-200);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: var(--primary, #0052FF);
    color: white !important;
    border: none;
    box-shadow: var(--shadow-md);
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.btn-primary span {
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary svg {
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translate(2px, -2px);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
    transform: translateY(-1px);
}

/* Hero Visual - Main Image + Screenshots */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-image {
    position: relative;
    z-index: 3;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

.floating-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.screenshot {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.screenshot img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: var(--space-sm);
    text-align: center;
}

.screenshot-overlay h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.screenshot-overlay p {
    font-size: 0.75rem;
    opacity: 0.9;
}

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

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

.btn-link {
    background: transparent;
    color: var(--accent-color);
    text-decoration: underline;
    border: none;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: #00c853;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 3;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

/* General Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* About Section */
.about-section {
    background-color: var(--neutral-50);
}

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

.about-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-xl);
    margin: 0 auto var(--space-md);
    transition: all 0.3s ease;
    opacity: 0.1;
}

.card-icon:hover {
    transform: translateY(-4px);
    opacity: 0.15;
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.about-card p {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Portfolio & Services Desktop Grid Styles */
.portfolio-section {
    padding: 3.5rem 0;
}

.product-grid,
.services-grid {
    display: grid;
    gap: 2rem;
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

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

.product-card,
.service-card {
    text-decoration: none;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.85rem 0.6rem 0.45rem;
    background: linear-gradient(180deg, #f5f7ff 0%, #edf2ff 100%);
}

.product-phone-shell {
    position: relative;
    width: min(100%, 190px);
    padding: 7px;
    border-radius: 30px;
    background: linear-gradient(145deg, #0d1118, #02050a 45%, #1f2732 100%);
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 10px 15px rgba(255, 255, 255, 0.02);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-phone-shell::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 10px;
    border-radius: 999px;
    background: #020202;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.08);
}

.product-phone-shell::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 2;
}

.product-phone-screen {
    border-radius: 23px;
    overflow: hidden;
    background: #0b0f17;
}

.product-phone-screen img {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 23px;
}

.product-card:hover .product-phone-shell {
    transform: translateY(-4px);
    box-shadow:
        0 24px 36px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(74, 158, 255, 0.25),
        0 0 20px rgba(74, 158, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.product-info {
    padding: 0.85rem 0.75rem 0.95rem;
    text-align: center;
}

.product-info h4 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--space-xs);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

.service-card {
    padding: var(--space-xl);
}

.service-icon {
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

.contact-info .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.contact-info .email-address {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: monospace;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Apple-style liquid glass contact buttons */
.btn-liquid {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-liquid:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-liquid:hover::before {
    left: 100%;
}

.btn-liquid:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background-color: var(--neutral-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-section p {
    margin-top: 1rem;
    color: var(--neutral-400);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 500;
}

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

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

.footer-section a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-700);
    color: var(--neutral-400);
    font-size: 0.9rem;
}

/* Slider base styles (hidden on desktop) */
.slider-pagination {
    display: none;
}

/* ------------------- */
/* Media Queries */
/* ------------------- */

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(20, 20, 20, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        gap: 2rem;
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--white);
    }

    .hamburger {
        display: flex;
        z-index: 100;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero {
        min-height: unset;
        height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 350px;
    }

    /* Mobile Slider Styles */
    .portfolio-section,
    .services-section {
        padding-left: 0;
        padding-right: 0;
    }

    .product-grid,
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        padding-bottom: 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .product-grid::-webkit-scrollbar,
    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card,
    .service-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
    
    .product-info,
    .service-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .slider-pagination {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--neutral-600);
        margin: 0 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .pagination-dot.active {
        background-color: var(--primary);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        flex-basis: auto;
    }
}

/* Focus States for Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.pagination-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
} 
