@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #40b1f7;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Background Elements */
.blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    filter: blur(120px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

.blob-1 {
    top: -200px;
    right: -200px;
}

.blob-2 {
    bottom: -200px;
    left: -200px;
    animation-delay: -5s;
}

/* Navbar */
nav {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 50px;
    /* Increased size by 50% */
    width: auto;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(64, 177, 247, 0.3));
    /* Glow for visibility */
    transition: transform 0.3s ease;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('media/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--glass-border);
}

.sub-page-hero {
    min-height: 50vh;
    padding-top: 120px;
    padding-bottom: 3rem;
    text-align: left;
    align-items: flex-end;
}

#hero-title {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.6);
}

/* Services Section */
.section {
    padding: 3rem 0;
}


/* Offers Section */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.offer-card {
    background: var(--accent-gradient);
    padding: 2.5rem;
    border-radius: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    max-width: 100%;
}

.offer-card:hover {
    transform: scale(1.02);
}

.offer-badge {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin: 1rem 0;
}

.offer-original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.1rem;
    margin-left: 10px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

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

.service-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.project-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-media img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.project-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

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

.no-link {
    cursor: default;
    opacity: 0.4;
    font-size: 0.8rem;
}

/* Testimonials */
.testimonials-wrapper {
    width: 100%;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem 0;
    transition: transform 0.6s ease-in-out;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--secondary);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.1;
    color: var(--primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    background: rgba(64, 177, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fallback-avatar svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Offers Section */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: linear-gradient(135deg, rgba(64, 177, 247, 0.1), rgba(0, 242, 254, 0.05));
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(64, 177, 247, 0.2);
    animation: pulseGlow 3s infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.offer-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
    display: block;
}

.offer-original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 1.5rem;
    display: block;
}

.no-offer {
    opacity: 0.6;
    text-align: center;
    padding: 3rem;
}

.no-offer-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: var(--transition);
        display: flex;
    }

    .nav-links.active {
        transform: translateY(0);
    }

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

    .section {
        padding: 4rem 0;
    }

    .testimonials-grid {
        display: flex;
        gap: 0;
    }

    .testimonials-wrapper {
        overflow: hidden;
    }

    .testimonial-card {
        min-width: 100%;
    }

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

    .offer-card {
        padding: 2rem 1.5rem;
    }

    .offer-price {
        font-size: 2rem;
    }

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

    /* Why Choose Us & Landing Page Grid Responsive */
    .container[style*="display: grid; grid-template-columns: 1.5fr 1fr"],
    .container[style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}