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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}



/* Main Content */
.main-content {
    flex: 1;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.section.prev {
    transform: translateX(-100%);
}

/* Company Name */
.company-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-align: left;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Home Section */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

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

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Floating Elements */
.floating-elements {
    position: relative;
    height: 750px;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Different animation types for variety */
.floating-card:nth-child(3n) {
    animation: float2 7s ease-in-out infinite;
}

.floating-card:nth-child(3n+1) {
    animation: float3 8s ease-in-out infinite;
}

.floating-card:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
    z-index: 10;
}

.floating-card:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.floating-card i {
    font-size: 2rem;
    color: #667eea;
    transition: all 0.3s ease;
}

/* Color variations for different types of cards */
.floating-card:nth-child(4n) i {
    color: #4ecdc4;
}

.floating-card:nth-child(4n+1) i {
    color: #ff6b6b;
}

.floating-card:nth-child(4n+2) i {
    color: #45b7d1;
}

.floating-card:nth-child(4n+3) i {
    color: #f39c12;
}

.floating-card:hover i {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.floating-card span {
    font-weight: 600;
    color: #333;
}

/* Floating cards positioning - updated for all cards */
.floating-card:nth-child(1) {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 100px;
    right: 40px;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 80px;
    left: 60px;
    animation-delay: 2s;
}

.floating-card:nth-child(4) {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

.floating-card:nth-child(5) {
    top: 150px;
    left: 30%;
    animation-delay: 1.5s;
}

.floating-card:nth-child(6) {
    top: 200px;
    right: 30%;
    animation-delay: 2.5s;
}

.floating-card:nth-child(7) {
    top: 250px;
    left: 20%;
    animation-delay: 3.5s;
}

.floating-card:nth-child(8) {
    top: 300px;
    right: 20%;
    animation-delay: 4s;
}

.floating-card:nth-child(9) {
    top: 350px;
    left: 40%;
    animation-delay: 4.5s;
}

.floating-card:nth-child(10) {
    top: 400px;
    right: 40%;
    animation-delay: 5s;
}

.floating-card:nth-child(11) {
    top: 450px;
    left: 60%;
    animation-delay: 5.5s;
}

.floating-card:nth-child(12) {
    top: 500px;
    right: 60%;
    animation-delay: 6s;
}

.floating-card:nth-child(13) {
    top: 550px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6.5s;
}

.floating-card:nth-child(14) {
    top: 600px;
    left: 30%;
    animation-delay: 7s;
}

.floating-card:nth-child(15) {
    top: 650px;
    right: 30%;
    animation-delay: 7.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-1deg); }
    50% { transform: translateY(-30px) rotate(0deg); }
    75% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes tooltipFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
    width: 20px;
    color: #4ecdc4;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-brand i {
    color: #4ecdc4;
    font-size: 1.5rem;
}

.footer-contact {
    flex: 1;
    margin: 0 2rem;
}

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

.address, .email {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
}

.address i, .email i {
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.address span {
    word-wrap: break-word;
    max-width: 300px;
}

.email a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.email a:hover {
    color: #4ecdc4;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ecdc4;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .company-name {
        font-size: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust floating cards for tablet */
    .floating-elements {
        height: 650px;
    }
    
    /* Footer adjustments for tablet */
    .footer-contact {
        margin: 0 1rem;
    }
    
    .address span {
        max-width: 250px;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .company-name {
        font-size: 1.8rem;
        text-align: center;
        letter-spacing: 1px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-contact {
        margin: 1rem 0;
        order: 2;
    }
    
    .contact-info-small {
        align-items: center;
        text-align: center;
    }
    
    .address span {
        max-width: 100%;
    }
    
    /* Adjust floating cards for mobile */
    .floating-elements {
        height: 600px;
        margin-top: 2rem;
    }
    
    .floating-card {
        padding: 0.8rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card span {
        font-size: 0.7rem;
    }
    
    /* Stack floating cards in a more mobile-friendly layout */
    .floating-card:nth-child(n) {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0.5rem;
        display: inline-block;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
