:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --secondary: #ff6b35;
    --accent: #00d4ff;
    --accent-light: #4ae8ff;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --dark-medium: #2a2a2a;
    --light: #ffffff;
    --light-gray: #f8f9fa;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 2rem 2rem;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-bg), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.tech-ticker {
    width: 100%;
    overflow: hidden;
    margin: 3rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.ticker-track {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.ticker-item i {
    margin-right: 0.5rem;
    color: var(--accent);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-primary);
    color: var(--light);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Contact Section */
.contact-section {
    position: relative;
    padding: 6rem;
    padding-top: 2rem;
}

.contact-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-grid .contact-info .contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
    text-align: center;
}

.contact-item-content strong {
    display: block;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item-content span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sophisticated Glass Form Design */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary) 60deg,
        var(--accent) 120deg,
        var(--secondary) 180deg,
        var(--primary) 240deg,
        var(--accent) 300deg,
        transparent 360deg
    );
    animation: borderRotate 8s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

.form-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--dark);
    border-radius: 28px;
    z-index: -1;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    /* Add some breathing room */
    min-width: 0; /* Prevents flex/grid items from overflowing */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Ensure proper box-sizing */
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 3px rgba(0, 212, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
    padding: 0;
    transform-origin: left top;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(10, 10, 10, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

/* Add margin-bottom to form-group for better spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Override for form-row groups to avoid double spacing */
.form-row .form-group {
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: var(--light);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.submit-btn::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.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(-1px);
}
/* Map Section */
.map-section {
    grid-column: 1 / -1;
    margin-top: 3rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.2);
}

/* Message System */
.messages-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--light);
    display: flex;
    align-items: center;
    border: 1px solid;
    position: relative;
    backdrop-filter: blur(10px);
    animation: messageSlide 0.5s ease-out;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.message-alert.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.message-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.message-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.message-text {
    flex: 1;
    font-weight: 500;
}

.close-alert {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: var(--transition);
    opacity: 0.7;
}

.close-alert:hover {
    opacity: 1;
    transform: scale(1.1);
}

.submit-btn.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn.loading .fas {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow Effects */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Loading State */
.loaded {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =================================== */
/* RESPONSIVE DESIGN          */
/* =================================== */

/* Tablets and smaller desktops (<= 992px) */
@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-container {
        padding: 2.5rem;
    }
}

/* Mobile devices (<= 768px) */
@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }


    /* Hero Section Fixes for Mobile */
    .hero-section {
        min-height: auto; /* Let content define height instead of full viewport */
        padding: 8rem 1.5rem 4rem; /* Adjust padding for mobile */
    }

    .hero-content {
        text-align: left; /* Left-align for better readability on narrow screens */
        width: 100%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin: 0 0 2.5rem 0; /* Adjust margin for left-alignment */
        max-width: 100%;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }

    /* Layout Grids */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0; /* Remove gap, use margin on group instead */
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 1.5rem; /* Space out stacked form fields */
    }
    
    .form-group:last-child {
        margin-bottom: 0;
    }

    /* Contact Section */
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-info h2, .form-title {
        font-size: 2rem;
    }

    .form-group input, .form-group textarea{
        margin-bottom: 1.25rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }

    /* Other elements */
    .tech-ticker {
        margin: 2.5rem 0;
        padding: 0.8rem 0;
    }

    .ticker-item {
        padding: 0 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Small mobile devices (<= 480px) */
@media (max-width: 480px) {
    :root {
        --border-radius: 15px;
    }

    .hero-section {
        padding: 6rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center; /* Center icon and text */
        padding: 1.2rem;
        font-size: 1rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .form-container::after {
        border-radius: 18px;
    }

    .form-title {
        font-size: 1.8rem;
    }
}   
    