:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --primary-color: #58a6ff;
    --secondary-color: #8b949e;
    --accent-color: #2f81f7;
    --text-color: #c9d1d9;
    --heading-color: #ffffff;
    --gradient-1: #79c0ff;
    --gradient-2: #d2a8ff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    /* Increased padding */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('hero-bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.6), rgba(13, 17, 23, 1));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.gradient-text {
    background: linear-gradient(120deg, var(--gradient-1), var(--gradient-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(47, 129, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 129, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll Mouse Animation */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Services */
.services-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Compatibility */
.compatibility-section {
    padding: 100px 0;
    background: linear-gradient(to top, rgba(22, 27, 34, 1), rgba(13, 17, 23, 1));
}

.compatibility-container {
    display: flex;
    flex-direction: column;
    /* Stack them for better focus */
    gap: 60px;
    margin-top: 50px;
}

.compat-group {
    width: 100%;
    /* removed background/padding to let items shine */
    text-align: center;
}

.compat-group h3 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.5));
    background-clip: text;
    /* standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}


.tag {
    background: rgba(22, 27, 34, 0.8);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.tag i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tag:hover {
    background: rgba(47, 129, 247, 0.1);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.tag:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--primary-color);
}

.tag:hover::after {
    transform: scaleX(1);
}

/* Device Icons Update */
.device-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 20px;
}

.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.device-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.device-item:hover::before {
    left: 100%;
}

.device-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(88, 166, 255, 0.2));
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

/* Staggered Floating Animation Start Points */
.device-item:nth-child(even) img {
    animation-delay: 1s;
}

.device-item:nth-child(3n) img {
    animation-delay: 2s;
}

.device-item span {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.device-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.15);
}

.device-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(88, 166, 255, 0.6));
}

.device-item:hover span {
    color: var(--heading-color);
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Contact */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-wrapper h3,
.map-wrapper h3 {
    color: var(--heading-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--heading-color);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    outline: none;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--secondary-color);
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
    border-bottom-color: var(--primary-color);
}

.input-group input:focus+label,
.input-group input:valid+label,
.input-group textarea:focus+label,
.input-group textarea:valid+label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.direct-email {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.map-wrapper {
    display: flex;
    flex-direction: column;
}

.address {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.map-frame {
    flex: 1;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    filter: invert(90%) hue-rotate(180deg);
    /* Dark mode map trick */
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.creds {
    font-size: 0.9rem;
    opacity: 0.8;
}

.creds strong {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-frame {
        min-height: 300px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.modal-content h2 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
}

.close-modal {
    min-width: 150px;
}