:root {
    --primary: #1255a6;
    /* Blue from logo */
    --primary-hover: #0c3e7d;
    --bg-main: #ffffff;
    --bg-alt: #f4f6fa;
    /* Light greyish blue */
    --bg-card: #ffffff;
    --text-main: #1e2633;
    --text-muted: #5e6877;
    --border-color: #e0e5eb;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.py-100 {
    padding: 100px 0;
}

.glassmorphism {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-title h2 span {
    color: var(--primary);
}

.section-title .underline {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content .subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-content .title span {
    color: var(--primary);
}

.hero-content .sub-heading {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(18, 85, 166, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 85, 166, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(18, 85, 166, 0.05);
    transform: translateY(-3px);
}

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

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

/* About Section */
.about {
    background: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(18, 85, 166, 0.1);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.meta-list {
    margin-top: 20px;
    text-align: right;
    display: inline-block;
}

.meta-list li {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-list li span {
    color: var(--primary);
    margin-left: 5px;
}

/* Products Section */
.products {
    background: var(--bg-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(18, 85, 166, 0.1);
    border-color: rgba(18, 85, 166, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.badge {
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
    transition: var(--transition);
}

.product-card:hover .product-info h3 {
    color: var(--primary);
}

.product-info p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info {
    padding: 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: #fff;
    background: var(--primary);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(18, 85, 166, 0.2);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.contact-item p {
    color: var(--text-muted);
}

.contact-map {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background: #0f172a;
    padding: 30px 0;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    /* makes logo white for dark footer */
}

footer p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.developer-credit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.developer-credit p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    flex-wrap: wrap;
    /* in case on very small screens */
}

.dev-company {
    color: #ff3b3b;
    /* Manassa Red */
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.dev-company img {
    height: 20px;
    width: auto;
    border-radius: 50%;
}

.dev-company:hover {
    color: #ff5252;
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content .title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(16px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content .title {
        font-size: 2.2rem;
    }

    .hero-content .sub-heading {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}