/* =====================================
   CSS Variables & Root
   ===================================== */
:root {
    --primary-color: #0047AB;
    --secondary-color: #F4F4F6;
    --dark-bg: #18191C;
    --light-bg: #23252A;
    --text-dark: #F4F4F6;
    --text-light: #A0A5B5;
    --border-color: #23252A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

/* =====================================
   Header Top Navigation
   ===================================== */
.header-top {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    padding: 0.75rem 1.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* =====================================
   Hamburger Menu
   ===================================== */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* =====================================
   Reset & Base Styles
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: url('assets/3.png') center/cover no-repeat fixed;
    line-height: 1.6;
}

/* =====================================
   Typography
   ===================================== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* =====================================
   Container & Layout
   ===================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================
   Navigation
   ===================================== */
.navbar {
    display: none;
}

/* =====================================
   Hero Section
   ===================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.5) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    margin-top: 0;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-hero {
    max-width: 90%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    animation: slideInUp 0.8s ease;
    margin-top: -10vh;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    animation: slideInUp 0.8s ease 0.2s both;
}

/* =====================================
   About Section
   ===================================== */
.about {
    padding: 80px 0;
    background-color: rgba(24, 25, 28, 0.92);
    backdrop-filter: blur(10px);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.skills {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.skills h3 {
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
}

.skills ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 500;
}

.skills li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* =====================================
   Divider Section
   ===================================== */
.divider {
    min-height: 10vh;
    background-color: transparent;
}

/* =====================================
   Projects Section
   ===================================== */
.projects {
    padding: 80px 0;
    background-color: rgba(24, 25, 28, 0.92);
    backdrop-filter: blur(10px);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.project-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    background: linear-gradient(135deg, #0047AB 0%, #003580 100%);
    color: #fff;
    padding: 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.project-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.project-card p {
    padding: 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
}

.project-links {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
}

.link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--dark-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* =====================================
   Products Section
   ===================================== */
.products-section {
    padding: 80px 0;
    background-color: rgba(24, 25, 28, 0.92);
    backdrop-filter: blur(10px);
    text-align: center;
}

.products-section h2 {
    margin-bottom: 2rem;
}

.products-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.products-cta {
    margin-top: 2rem;
}

.btn-download {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0047AB 0%, #003580 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 71, 171, 0.3);
}

.btn-download span {
    margin-right: 0.5rem;
}

/* =====================================
   Contact Section
   ===================================== */
.contact {
    padding: 80px 0;
    background-color: rgba(24, 25, 28, 0.92);
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: center;
}

.contact h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: #F4F4F6;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* =====================================
   Footer
   ===================================== */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* =====================================
   Animations
   ===================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   Responsive Design
   ===================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.5rem 2rem;
    }

    .nav-menu a {
        color: #fff;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: 60px 0;
        min-height: 80vh;
    }

    .logo-hero {
        height: 8em;
        margin-top: -5vh;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }

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

    .about,
    .projects,
    .products-section,
    .contact {
        padding: 40px 0;
    }

    .about h2,
    .projects h2,
    .products-section h2,
    .contact h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

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

    .skills ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .products-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-download {
        display: block;
        width: 90%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .divider {
        min-height: 8vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }

    .logo-hero {
        height: 6em;
        margin-top: -3vh;
    }

    .header-top {
        padding: 1rem;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .logo-header {
        max-width: 150px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .nav-menu li {
        padding: 0.5rem 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .skills {
        padding: 1.5rem;
    }

    .skills h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .contact-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .products-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn-download {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-header {
        min-height: 80px;
        padding: 1.5rem;
    }

    .contact-card .icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

/* =====================================
   Print Styles
   ===================================== */
@media print {
    .navbar,
    .footer {
        display: none;
    }
}
