@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #f093fb;
    --vibrant-pink: #ff00ff;
    --vibrant-blue: #00ffff;
    --dark: #050b18;
    --dark-lighter: #0a192f;
    --light: #e6f1ff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, var(--vibrant-blue), var(--secondary));
    --gradient-2: linear-gradient(135deg, var(--secondary), var(--vibrant-pink));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) translateY(50px);
    }

    to {
        opacity: 1;
        transform: rotate(0) translateY(0);
    }
}

/* Scroll Animation Base State */
.reveal {
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(100px);
}

.reveal-left {
    transform: translateX(-150px);
}

.reveal-right {
    transform: translateX(150px);
}

.reveal-zoom {
    transform: scale(0.7);
}

.reveal.active {
    opacity: 1 !important;
    transform: translate(0) scale(1) rotate(0) !important;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--vibrant-blue);
    border-right: 3px solid var(--vibrant-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-weight: 800;
    letter-spacing: 5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInOut 2s infinite ease-in-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 242, 254, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: white;
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Navigation - New Model Layout */
header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.floating-nav {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    pointer-events: auto;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.7;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.1), transparent),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.1), transparent);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--vibrant-blue);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.25;
    z-index: -1;
    animation: pulse 6s infinite ease-in-out;
}

.hero-glow:nth-child(2) {
    background: var(--vibrant-pink);
    animation-delay: -3s;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-image {
    position: absolute;
    right: -100px;
    width: 50%;
    animation: float 6s infinite ease-in-out;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Developments Section */
.dev-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.dev-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.dev-item:nth-child(even) {
    flex-direction: row-reverse;
}

.dev-content {
    flex: 1;
}

.dev-image {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
}

.dev-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Decorations */
.section-who,
.section-what {
    position: relative;
    overflow: hidden;
}

.decoration {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
    top: -300px;
    right: -200px;
    opacity: 0.2;
    filter: blur(80px);
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.1), transparent 70%);
    bottom: -250px;
    left: -100px;
    opacity: 0.15;
    filter: blur(60px);
}

.grid-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--glass-border) 2px, transparent 2px);
    background-size: 40px 40px;
    top: 0;
    left: 0;
    opacity: 0.1;
}

.glass-frame {
    border: 1px solid var(--glass-border);
    padding: 15px;
    background: var(--glass);
    position: relative;
    border-radius: 30px;
}

.glass-frame::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    z-index: -1;
    border-radius: 32px;
    opacity: 0.3;
    transition: 0.5s;
}

.glass-frame:hover::after {
    opacity: 1;
    filter: blur(10px);
}

.hover-arrow i {
    transition: 0.3s;
}

.hover-arrow:hover i {
    transform: translateX(10px);
}

/* Modern Services Grid */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card-pill {
    padding: 40px 30px;
    text-align: center;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.service-card-pill:hover {
    transform: translateY(-15px);
    border-color: var(--vibrant-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.1);
}

.service-card-pill i {
    font-size: 3rem;
    margin-bottom: 25px;
}

/* Modal Pop-up Layout */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 11, 24, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 800px;
    width: 100%;
    position: relative;
    padding: 0;
    overflow: hidden;
    animation: modalSlide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--vibrant-pink);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-left {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(255, 0, 255, 0.1));
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-left h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.modal-left p {
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.8;
}

.modal-info-tags {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-info-tags span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-right {
    padding: 50px 40px;
    background: var(--dark-lighter);
}

.modal-form h3 {
    margin-bottom: 25px;
    text-decoration: underline;
    text-decoration-color: var(--vibrant-blue);
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form input,
.modal-form select {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-left {
        display: none;
    }
}

/* Callback Section */
.callback-container {
    padding: 60px 40px;
}

.callback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-group select option {
    background: var(--dark-lighter);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form {
    padding: 0;
}

.contact-box {
    background: rgba(10, 25, 47, 0.6) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.contact-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-links {
    text-align: center;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--light);
    opacity: 0.6;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-center ul {
    align-items: center;
}

.footer-right ul {
    align-items: flex-end;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-separator {
    width: 80%;
    height: 2px;
    margin: 50px auto 0;
    background: linear-gradient(to right,
            transparent,
            var(--vibrant-blue) 20%,
            var(--secondary) 50%,
            var(--vibrant-pink) 80%,
            transparent);
    opacity: 0.8;
}

.copy {
    text-align: center;
    padding: 25px 0 0;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Mobile Visibility Fixes */
.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 968px) {
    .floating-nav {
        max-width: calc(100% - 40px);
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .dev-item {
        flex-direction: column !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.4s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .mobile-only {
        display: block;
        width: 100%;
    }

    .mobile-only a {
        display: block;
        opacity: 1 !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .callback-container {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}