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

:root {
    --primary-red: #dc2626;
    --secondary-red: #ef4444;
    --light-red: #fef2f2;
    --dark-red: #991b1b;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.footer-logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

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

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.highlight {
    color: var(--primary-red);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
    overflow: hidden;
}

.floating-cards {
    position: relative;
    width: 420px;
    height: 420px;
    max-width: 90vw;
    max-height: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.card {
    position: absolute;
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    width: 110px;
    height: 110px;
    justify-content: center;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.card:hover {
    z-index: 10;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-red) 100%);
    /* Don't modify transform here - let individual cards handle it */
}

.card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.card span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

/* Position cards in a perfect circle - 6 cards evenly spaced around a circle */
/* Using 140px radius from center, positioned at 60-degree intervals */
.digitization-card {
    top: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -55px;
    transform: translateY(-140px);
    color: var(--primary-red);
}

.digitization-card:hover {
    transform: translateY(-148px) scale(1.08) !important;
}

@keyframes orbit0 {
    from {
        transform: rotate(0deg) translateY(-180px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateY(-180px) rotate(-360deg);
    }
}

.consulting-card {
    top: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -55px;
    transform: rotate(60deg) translateY(-140px) rotate(-60deg);
    color: var(--secondary-red);
}

.consulting-card:hover {
    transform: rotate(60deg) translateY(-148px) rotate(-60deg) scale(1.08) !important;
}

.web-card {
    top: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -55px;
    transform: rotate(120deg) translateY(-140px) rotate(-120deg);
    color: var(--primary-red);
}

.web-card:hover {
    transform: rotate(120deg) translateY(-148px) rotate(-120deg) scale(1.08) !important;
}

.mobile-card {
    top: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -55px;
    transform: rotate(180deg) translateY(-140px) rotate(-180deg);
    color: var(--secondary-red);
}

.mobile-card:hover {
    transform: rotate(180deg) translateY(-148px) rotate(-180deg) scale(1.08) !important;
}

.desktop-card {
    top: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -55px;
    transform: rotate(240deg) translateY(-140px) rotate(-240deg);
    color: var(--dark-red);
}

.desktop-card:hover {
    transform: rotate(240deg) translateY(-148px) rotate(-240deg) scale(1.08) !important;
}

.vr-card {
    top: 50%;
    left: 50%;
    margin-left: -55px;
    margin-top: -55px;
    transform: rotate(300deg) translateY(-140px) rotate(-300deg);
    color: var(--primary-red);
}

.vr-card:hover {
    transform: rotate(300deg) translateY(-148px) rotate(-300deg) scale(1.08) !important;
}

/* Orbital animations that combine rotation and counter-rotation */
@keyframes orbit60 {
    from {
        transform: rotate(60deg) translateY(-180px) rotate(-60deg);
    }
    to {
        transform: rotate(420deg) translateY(-180px) rotate(-420deg);
    }
}

@keyframes orbit120 {
    from {
        transform: rotate(120deg) translateY(-180px) rotate(-120deg);
    }
    to {
        transform: rotate(480deg) translateY(-180px) rotate(-480deg);
    }
}

@keyframes orbit180 {
    from {
        transform: rotate(180deg) translateY(-180px) rotate(-180deg);
    }
    to {
        transform: rotate(540deg) translateY(-180px) rotate(-540deg);
    }
}

@keyframes orbit240 {
    from {
        transform: rotate(240deg) translateY(-180px) rotate(-240deg);
    }
    to {
        transform: rotate(600deg) translateY(-180px) rotate(-600deg);
    }
}

@keyframes orbit300 {
    from {
        transform: rotate(300deg) translateY(-180px) rotate(-300deg);
    }
    to {
        transform: rotate(660deg) translateY(-180px) rotate(-660deg);
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.service-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, var(--light-red) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-red);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--white);
    transform: scale(1.1);
}

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

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gray-50);
}

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

.about-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray-600);
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--light-red) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    transform: scale(1.1);
    border-color: var(--primary-red);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: var(--white);
    transform: scale(1.1);
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--gray-600);
}

.contact-form {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo p {
    color: var(--gray-400);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

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

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

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

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Counter-rotate the cards so they stay upright while the container rotates */
@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-cards {
        display: none;
    }
    .logo-image {
        height: 40px;
    }
    
    .footer-logo-image {
        height: 50px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .floating-cards {
        width: 220px;
        height: 220px;
        max-width: 80vw;
        max-height: 80vw;
        margin-top: 1.25rem;
    }

    .card {
        padding: 0.7rem;
        width: 64px;
        height: 64px;
    }

    .card i {
        font-size: 1.1rem;
    }

    .card span {
        font-size: 0.68rem;
    }
    
    .digitization-card {
        top: 6px;
        left: 50%;
        margin-left: -32px;
        transform: translateY(-95px);
    }
    
    .consulting-card {
        top: 60px;
        right: 22px;
        transform: rotate(60deg) translateY(-95px) rotate(-60deg);
    }
    
    .web-card {
        top: 50%;
        right: 16px;
        margin-top: -32px;
        transform: rotate(120deg) translateY(-95px) rotate(-120deg);
    }
    
    .mobile-card {
        bottom: 60px;
        right: 22px;
        transform: rotate(180deg) translateY(-95px) rotate(-180deg);
    }
    
    .desktop-card {
        bottom: 6px;
        left: 50%;
        margin-left: -32px;
        transform: rotate(240deg) translateY(-95px) rotate(-240deg);
    }
    
    .vr-card {
        top: 50%;
        left: 16px;
        margin-top: -32px;
        transform: rotate(300deg) translateY(-95px) rotate(-300deg);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .footer-logo-image {
        height: 45px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .floating-cards {
        width: 180px;
        height: 180px;
        max-width: 75vw;
        max-height: 75vw;
        margin-top: 1.25rem;
    }

    .card {
        padding: 0.55rem;
        width: 58px;
        height: 58px;
    }

    .card i {
        font-size: 0.95rem;
    }

    .card span {
        font-size: 0.6rem;
    }
    
    .digitization-card {
        top: 4px;
        left: 50%;
        margin-left: -29px;
        transform: translateY(-75px);
    }
    
    .consulting-card {
        top: 40px;
        right: 18px;
        transform: rotate(60deg) translateY(-75px) rotate(-60deg);
    }
    
    .web-card {
        top: 50%;
        right: 12px;
        margin-top: -29px;
        transform: rotate(120deg) translateY(-75px) rotate(-120deg);
    }
    
    .mobile-card {
        bottom: 40px;
        right: 18px;
        transform: rotate(180deg) translateY(-75px) rotate(-180deg);
    }
    
    .desktop-card {
        bottom: 4px;
        left: 50%;
        margin-left: -29px;
        transform: rotate(240deg) translateY(-75px) rotate(-240deg);
    }
    
    .vr-card {
        top: 50%;
        left: 12px;
        margin-top: -29px;
        transform: rotate(300deg) translateY(-75px) rotate(-300deg);
    }
}

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

/* Loading animation for cards */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}
