:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #007acc;
    --secondary-accent: #00d2ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --glow: 0 0 30px rgba(0, 210, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 20% 20%, rgba(0, 210, 255, 0.12), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(0, 122, 204, 0.15), transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05), transparent 35%),
        var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Prevents navbar from covering content */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(120deg, var(--accent-color), var(--secondary-accent));
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 999px;
    box-shadow: var(--glow);
}

.cta-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.highlight {
    color: var(--secondary-accent);
}

.explore-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.explore-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 122, 204, 0.4);
}

/* Hero Background Blobs */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    animation: float 10s infinite alternate;
}

.blob-2 {
    bottom: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: var(--secondary-accent);
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Sections General */
section {
    padding: 8rem 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* About / Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 25px 70px rgba(0, 210, 255, 0.25);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-accent);
}

/* Showcase */
.project-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 30px 80px rgba(0, 210, 255, 0.25);
}

.project-content {
    flex: 1;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--secondary-accent);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-specs {
    list-style: none;
    margin: 2rem 0;
}

.project-specs li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.project-specs li::before {
    content: '▹';
    color: var(--accent-color);
    margin-right: 10px;
}

.project-visual {
    flex: 1;
}

.mockup-window {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.mockup-body {
    background: #1e1e1e;
}

.project-img {
    display: block;
    width: 100%;
}

/* Contact */
.contact-content {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    padding: 1rem;
    background: linear-gradient(120deg, var(--accent-color), var(--secondary-accent));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: opacity 0.3s;
    box-shadow: var(--glow);
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    margin-top: 5rem;
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 80%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal h2 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, background 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.feature-item .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-accent);
}

.feature-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Solutions Specific Styling */
.solutions .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: solution-counter;
}

.solutions .feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    counter-increment: solution-counter;
}

/* Watermark Number */
.solutions .feature-card::after {
    content: counter(solution-counter, decimal-leading-zero);
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading);
    transition: 0.3s;
}

.solutions .feature-card:hover::after {
    color: rgba(0, 210, 255, 0.05);
    transform: translateY(-5px);
}

/* Shimmer Effect */
.solutions .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: 2;
    pointer-events: none;
}

.solutions .feature-card:hover::before {
    transform: translateX(100%);
}

.solutions .feature-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 122, 204, 0.1);
    transform: translateY(-10px) scale(1.02);
}

.solutions .feature-card h3 {
    color: var(--secondary-accent);
    background: linear-gradient(90deg, #fff, var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.solutions .feature-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Solution Card Background Handling - Reverted to Glassmorphism */
.solutions .feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    counter-increment: solution-counter;
    background-color: transparent;
}

/* Restoring Shimmer Effect */
.solutions .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: 2;
    pointer-events: none;
}

.solutions .feature-card:hover::before {
    transform: translateX(100%);
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

/* Remove Text Shadow which was added for image readability */
.solutions .feature-card h3,
.solutions .feature-card p {
    text-shadow: none;
}

/* Responsive Grid Adjustments */
@media (max-width: 1100px) {
    .solutions .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solutions .features {
        grid-template-columns: 1fr;
    }
}