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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #d1d5db;
    background: #0a0a0a;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(34, 150, 243, 0.1);
    transition: all 0.3s ease;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.nav-brand img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    background-color: transparent;
    mix-blend-mode: screen;
    filter: contrast(1.2) brightness(1.1);
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #9ca3af;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-brand:hover h1 {
    color: #2196f3;
}

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

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2196f3;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2196f3;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Brand Logos Section */
.brand-logos-section {
    padding: 4rem 0 2rem;
    background: rgba(15, 15, 15, 0.5);
    border-bottom: 1px solid rgba(34, 150, 243, 0.1);
    margin-top: 80px; /* Account for fixed navbar */
}

.logos-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f3f4f6;
    text-align: center;
    line-height: 1.2;
}

.logos-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.brand-logos-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Handle the 27 items distribution: 9-9-9 across 3 rows */

.brand-logo-item {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.brand-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 150, 243, 0.1), transparent);
    transition: left 0.5s ease;
}

.brand-logo-item:hover::before {
    left: 100%;
}

.brand-logo-item:hover {
    transform: translateY(-3px);
    background: rgba(34, 150, 243, 0.05);
    border-color: rgba(34, 150, 243, 0.3);
    box-shadow: 0 8px 25px rgba(34, 150, 243, 0.15);
}

.brand-logo-item img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.brand-logo-item:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.brand-logo-item .text-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.brand-logo-item:hover .text-logo {
    color: #2196f3;
    transform: scale(1.05);
}

/* Dark mode logo adjustments */
.brand-logo-item img[src*="samsung"] {
    filter: brightness(1.2) contrast(1.1);
}

.brand-logo-item img[src*="intel"] {
    filter: brightness(1.3) contrast(1.2);
}

.brand-logo-item img[src*="skillshare"] {
    filter: brightness(1.1);
}

.brand-logo-item img[src*="tabnine"] {
    filter: brightness(1.2);
}

.brand-logo-item img[src*="hostinger"] {
    filter: brightness(1.1);
}

.brand-logo-item img[src*="redhat"] {
    filter: brightness(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.05) 0%, transparent 70%);
}

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

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

.gradient-text {
    background: linear-gradient(135deg, #2196f3, #64b5f6, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2196f3;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.4);
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    background: #1e293b;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.window-header {
    background: #374151;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.window-controls {
    display: flex;
    gap: 0.375rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.window-title {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-left: auto;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.keyword { color: #c792ea; }
.variable { color: #82aaff; }
.property { color: #ffcb6b; }
.string { color: #c3e88d; }
.number { color: #f78c6c; }

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: rgba(15, 15, 15, 0.3);
}

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

.service-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(107, 114, 128, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2196f3, #1976d2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.service-description {
    color: #cbd5e1;
    line-height: 1.7;
}



/* Views Counter Section */
.views-counter-section {
    padding: 4rem 0;
    background: rgba(10, 10, 10, 0.8);
    text-align: center;
}

.counter-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 2rem;
}

.counter-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.counter-number {
    font-size: 4rem;
    font-weight: 300;
    color: #2196f3;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: -0.02em;
    line-height: 1;
}

.counter-suffix {
    font-size: 2rem;
    color: #9ca3af;
    font-weight: 400;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

/* Responsive counter design */
@media (max-width: 768px) {
    .counter-heading {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .counter-number {
        font-size: 3rem;
    }
    
    .counter-suffix {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .views-counter-section {
        padding: 3rem 0;
    }
    
    .counter-heading {
        font-size: 1.75rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .counter-suffix {
        font-size: 1.25rem;
    }
    
    .counter-display {
        gap: 0.5rem;
    }
}

/* Animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .counter-number {
        transition: none !important;
    }
}

/* Video Showcase */
.showcase {
    padding: 6rem 0;
    background: rgba(15, 15, 15, 0.5);
}

.video-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-wrapper.active {
    opacity: 1;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.video-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-btn {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #9ca3af;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.video-btn:hover,
.video-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
    transform: translateY(-2px);
}

/* Team Section */
.team {
    padding: 6rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(107, 114, 128, 0.2);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.member-role {
    color: #2196f3;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: #cbd5e1;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: rgba(15, 15, 15, 0.3);
}

.contact-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-message {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.contact-message a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-message a:hover {
    color: #64b5f6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 0.75rem;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.contact-item i {
    color: #2196f3;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #f1f5f9;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #cbd5e1;
}

.contact-form {
    background: rgba(20, 20, 20, 0.8);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #f1f5f9;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.4);
}

/* Budget Reach Information */
.budget-reach-info {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 0.375rem;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.reach-estimate {
    color: #cbd5e1;
    font-size: 0.75rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #050505;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(107, 114, 128, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.footer-links a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #64b5f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 114, 128, 0.2);
    color: #94a3b8;
}

/* Brand logos responsive design */
@media (max-width: 1200px) {
    .brand-logos-grid {
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    /* Distribute 27 items as 7-7-7-6 across 4 rows, center last row */
    .brand-logo-item:nth-child(n+26) {
        grid-column-start: 2;
    }
    
    .logos-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .brand-logos-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 1rem;
    }
    
    /* Reset centering for responsive */
    .brand-logo-item:nth-child(n+26) {
        grid-column-start: auto;
    }
    
    .logos-title {
        font-size: 1.5rem;
    }
    
    .brand-logo-item {
        height: 75px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .brand-logos-section {
        padding: 3rem 0 1.5rem;
        margin-top: 70px;
    }
    
    .brand-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(7, 1fr);
        gap: 0.875rem;
    }
    
    .brand-logo-item {
        height: 65px;
        padding: 1rem;
    }
    
    .brand-logo-item img {
        max-height: 35px;
    }
    
    .brand-logo-item .text-logo {
        font-size: 0.9rem;
    }
    
    .logos-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .brand-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(9, 1fr);
        gap: 0.75rem;
    }
    
    .brand-logo-item {
        height: 60px;
        padding: 0.75rem;
    }
    
    .brand-logo-item img {
        max-height: 30px;
    }
    
    .brand-logo-item .text-logo {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .brand-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(14, 1fr);
        max-width: 280px;
    }
    
    .brand-logo-item {
        height: 55px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .video-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .video-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-grid,
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        height: 300px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Effects */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}