/* 
   KeysCITI Main Styles 
   Theme: Navy Blue & Gold (Technology / Professional)
*/

:root {
    /* Colors */
    --primary-color: #0A2558;
    /* Deep Navy Blue */
    --primary-dark: #051535;
    --accent-color: #FFC107;
    /* Gold/Yellow */
    --accent-hover: #e0a800;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --glass-bg: rgba(255, 255, 255, 0.9);

    /* Fonts */
    --body-font: 'Inter', sans-serif;

    /* Spacing */
    --header-height: 100px;
    /* Increased height */
    --section-padding: 5rem 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scroll-header {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-img {
    height: 85px;
    /* Increased Logo Size */
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-hover);
}

/* Mobile Toggle */
.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    padding-top: var(--header-height);
    background: url('../assets/img/bg-tech.svg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* Hero Visual Details */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass Cards */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--white);
    animation: float 4s ease-in-out infinite;
}

.glass-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Specific Card Positions */
.card-2 {
    top: 70%;
    left: 10%;
    animation-delay: 2s;
}

.card-3 {
    top: 20%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Sections General */
.section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.text-center {
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more:hover {
    color: var(--accent-hover);
}

.highlight-card {
    background-color: var(--light-gray);
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-box {
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 20px;
    z-index: -1;
    transform: rotate(-3deg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: rotate(3deg);
    border: 5px solid var(--white);
    position: relative;
    z-index: 2;
}

.about-list {
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--accent-color);
}

/* CTA */
.cta {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 1.5rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        padding: 0 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
        /* Visual first */
    }

    .hero-visual {
        order: 0;
        margin-bottom: 2rem;
        height: 300px;
        display: none;
    }

    /* Simple adjust: let visual show but smaller */
    .hero-visual {
        display: flex;
        height: 250px;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 4rem 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        text-align: center;
    }

    .nav-menu.show {
        top: var(--header-height);
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}