* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Hero Section Enhancements */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideInFromLeft 1s ease-out;
}

.hero-section p {
    animation: slideInFromLeft 1.2s ease-out;
}

.hero-section button,
.hero-section a {
    animation: slideInFromLeft 1.4s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Button Hover Effects */
#getQuoteBtn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#getQuoteBtn:hover {
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.4);
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-section h1 span {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Code Editor Styling */
.code-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-line span:first-child {
    min-width: 30px;
    text-align: right;
    user-select: none;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    white-space: nowrap;
    min-width: 250px;
}

/* Cursor Blink */
.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #fbbf24;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Code Window Glow Effect */
.bg-gray-900 {
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

/* Floating Icons Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

.animate-bounce {
    animation: float 3s ease-in-out infinite;
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-icon:hover {
    transform: scale(1.3) rotate(360deg) !important;
    filter: drop-shadow(0 0 10px currentColor);
}

/* Mobile Responsive Code Editor */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hero-section .md\:w-1\/2 {
        width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Smaller code editor on mobile */
    .relative.bg-gray-900 {
        transform: scale(0.9);
        margin-left: 0;
        margin-right: 0;
    }
    
    .relative.bg-gray-900:hover {
        transform: scale(0.95);
    }
    
    /* Adjust code editor height on mobile */
    .p-6.font-mono {
        height: 240px !important;
        padding: 1rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Smaller floating icons on mobile */
    .absolute.text-4xl,
    .absolute.text-3xl {
        font-size: 2rem !important;
    }
    
    /* Center the code editor container */
    .relative.w-full.max-w-lg {
        max-width: 98%;
        margin: 0 auto;
        padding: 0 0.25rem;
    }
    
    /* Footer improvements for mobile */
    footer .grid {
        gap: 2rem !important;
    }
    
    footer .md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    footer h3, footer h4 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    footer p, footer ul li {
        font-size: 0.95rem !important;
        line-height: 1.8 !important;
    }
    
    footer ul {
        margin-top: 0.5rem;
    }
    
    footer .flex.items-center {
        justify-content: center;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Card Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

/* Button Styles */
button, a {
    transition: all 0.3s ease;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #2563eb, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu */
#mobileMenu {
    transition: max-height 0.3s ease;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::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;
}

.service-card:hover::before {
    left: 100%;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Footer Links */
footer a {
    color: #d1d5db;
    text-decoration: none;
}

footer a:hover {
    color: #3b82f6;
}

/* Form Styles */
input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body {
    padding: 24px;
}

#closeModal {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: color 0.3s ease;
}

#closeModal:hover {
    color: #ef4444;
}

/* Form Success/Error Messages */
.form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Loading State for Submit Button */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header, .modal-body {
        padding: 16px;
    }
}
