:root {
    --primary-color: #FF6B00;
    --secondary-color: #2B63FF;
    --background-color: #0A0A0A;
    --text-color: #FFFFFF;
    --text-color-muted: #A0A0A0;
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF6B00 100%);
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

#root {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 6rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 990;
    background-color: var(--background-color);
    box-sizing: border-box;
    overflow: hidden;
    height: 72px;
}

.navbar-mobile .logo {
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 2rem;
}

.logo-container {
    width: 2.25rem;
    height: 2.25rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-mobile .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 1rem;
    right: 2rem;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.line {
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.line-1 {
    top: 0;
}

.line-2 {
    top: 50%;
    transform: translateY(-50%);
}

.line-3 {
    bottom: 0;
}

.menu-btn.open .line-1 {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.open .line-2 {
    opacity: 0;
}

.menu-btn.open .line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

.close-btn {
    position: fixed;
    top: 1rem;
    right: 2rem;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    z-index: 1001;
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

.menu-btn:hover svg {
    transform: scale(1.1);
}

.menu-btn:active svg {
    transform: scale(0.9);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-color: var(--background-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    margin-top: -4rem;
}

.mobile-nav-links .nav-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    padding: 0.5rem;
}

@media (max-width: 480px) {
    .mobile-nav-links .nav-link {
        font-size: 1.5rem;
    }
}

.menu-overlay.open .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.open .nav-link:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.open .nav-link:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.open .nav-link:nth-child(3) { transition-delay: 0.3s; }
.menu-overlay.open .nav-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .navbar {
        display: none;
    }
    .navbar-mobile {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0.5rem 2rem; /* Match the original padding from .navbar-mobile */
        left: 0;
    }
}

html {
    scroll-padding-top: 120px;
}

.logo img {
    height: 140px;
    width: 140px;
    object-fit: contain;
    margin-top: 2rem;
}


.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 0;
    padding-top: 10px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 6rem 8rem;
    position: relative;
    overflow: hidden;
    background-color: var(--background-color);
    justify-content: space-between;
}

/* Mobile hero section */
.hero-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    padding: 0;
}

.hero-mobile-logo {
    margin-bottom: 1.5rem;
    animation: logoAnimation 1.2s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    text-align: center;
    padding: 0;
}

.mobile-logo-img {
    width: 65%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
}

@keyframes logoAnimation {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Hero tagline styling moved to custom-animations.css */

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 12rem);
    padding-bottom: 0;
    margin-right: 2rem;
}

.pre-heading {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-style: italic;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Lato', sans-serif;
}

.hero-text {
    padding: 8rem 0 4rem;
    text-align: left;
    margin: auto 0;
}

.hero-text p {
    font-size: 1.25rem;
    color: #888;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-style: italic;
}

.hero-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 4rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.4rem 3rem;
    min-width: 180px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
}

.btn-primary:hover {
    background: #FF6B00;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid #444;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Changed from blue to grey while animating */
.stat-number.animating {
    color: #888;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
}

.stat-number.animating::after {
    transform: scaleX(1);
    transition: transform 2s ease-out;
}

.stat-label {
    color: #888;
    font-size: 1.1rem;
    white-space: nowrap;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: -4rem;
}

.code-image {
    width: 550px;
    height: auto;
    mix-blend-mode: screen;
    animation: circleEffect 4s ease-in-out infinite;
}

@keyframes circleEffect {
    0% {
        filter: brightness(1) contrast(1) saturate(1);
    }
    50% {
        filter: brightness(1.6) contrast(1.3) saturate(1.5) sepia(0.3) hue-rotate(320deg);
    }
    100% {
        filter: brightness(1) contrast(1) saturate(1);
    }
}

.tech-stack {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.tech-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    filter: none;
    transform: scale(1.2);
}

/* Section Styles */
section {
    padding: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-color-muted);
    font-size: 1.25rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Desktop version of about us */
.desktop-about {
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-color-muted);
    max-width: 900px;
    line-height: 1.8;
    font-style: italic;
}

/* Mobile version of about us */
.mobile-about {
    display: none;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-color-muted);
    max-width: 900px;
    line-height: 1.6;
    font-style: italic;
}

.company-name {
    color: var(--primary-color);
    font-style: normal;
}

.section-header {
    margin-bottom: 3rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-color-muted);
}

/* Contact Section */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF6B00'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

select option {
    background-color: var(--background-color);
    color: var(--text-color);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    margin-bottom: 2rem;
    resize: none;
    height: 150px;
}

.contact-form button {
    display: block;
    margin: 0 auto;
    min-width: 180px;
    cursor: pointer;
}

.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.thank-you-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.thank-you-message {
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.thank-you-message h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.thank-you-message p {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
}

.thank-you-message .btn {
    min-width: 120px;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: checkmark 0.5s ease-out;
}

.checkmark svg {
    width: 30px;
    height: 30px;
    color: white;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem 6rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 80px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero {
        padding: 8rem 4rem;
    }
    
    .hero-content {
        max-width: 550px;
    }
    
    .code-image {
        width: 450px;
    }

    h1 {
        font-size: 4rem;
    }

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: 1rem;
    white-space: nowrap;
}

    .tech-stack {
        gap: 1.5rem;
    }

    .tech-icon {
        width: 40px;
        height: 40px;
    }
}



@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-bottom {
        gap: 0.5rem;
        padding-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .stat {
        flex: 1;
        min-width: 150px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Hide mobile nav logo when on hero section */
body:not(.scrolled) .navbar-mobile .logo {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 480px) {
    /* Hero section mobile styles */
    .hero {
        padding: 6rem 1rem 4rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        position: relative;
        box-sizing: border-box;
    }

    .hero-content {
        flex: 1;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        min-height: auto;
        justify-content: center;
        align-items: center;
    }

    .hero-bottom {
        position: relative;
        bottom: auto;
        left: 0;
        right: 0;
        margin: 3rem auto 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Hide desktop content on mobile */
    .hero-text, .tech-stack, .hero-stats, .hero-image {
        display: none;
    }
    
    /* Structure the mobile hero with fixed positioning */
    .hero-mobile {
        display: flex;
        margin: 3rem auto 0;
        padding: 0;
        min-height: 120px;
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .hero-mobile-logo {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .mobile-logo-img {
        width: 100%;
        max-width: 220px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Position the buttons to be visible in the initial viewport */
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 280px;
        margin: 2rem auto 0;
        position: relative;
        z-index: 5;
        display: flex;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        box-sizing: border-box;
    }

    .btn {
        min-width: 100px;
        padding: 0.4rem 1rem; /* Reduced vertical padding */
        font-size: 0.95rem; /* Slightly smaller font */
        width: 100%;
    }
    
    /* General section spacing */
    section {
        padding: 1.5rem 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    /* Section header spacing */
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* About section - show mobile version */
    .desktop-about {
        display: none;
    }
    
    .mobile-about {
        display: block;
    }
    
    /* Services section - mobile optimization */
    .services-grid {
        gap: 0.75rem;
    }
    
    .service-card {
        padding: 1.25rem 0.75rem;
        border-radius: 8px;
    }
    
    .service-icon {
        width: 45px;  /* Smaller icon */
        height: 45px;
        margin: 0 auto 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .footer {
        padding: 2rem 1.5rem 1rem;
    }

    .footer-content {
        display: block;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-logo, .footer-links {
        display: none;
    }

    .footer-contact {
        text-align: center;
        margin-bottom: 2rem;
    }
}
