/* ========================================
   Automated Communication Systems
   Style Sheet
   ======================================== */

:root {
    --navy: #0a1628;
    --navy-light: #122040;
    --blue: #1a3a6b;
    --blue-accent: #2e6bc6;
    --blue-bright: #4a90d9;
    --white: #ffffff;
    --gray-light: #f0f2f5;
    --gray: #b0b8c4;
    --text-primary: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6b7a8d;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1100px;
    --nav-height: 64px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--navy);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-logo:hover {
    color: var(--blue-bright);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    padding: var(--nav-height) 24px 60px;
}

.hero-content {
    max-width: 700px;
}

.hero-logo {
    max-width: 420px;
    margin: 40px auto 48px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blue-accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-bright);
    transform: translateY(-2px);
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-light);
}

.section-dark {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--blue-accent);
    margin: 12px auto 0;
}

.section-dark .section-title::after {
    background: var(--blue-bright);
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.about-role {
    color: var(--blue-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.credentials {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credential {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: var(--gray-light);
    border-radius: 6px;
    border-left: 3px solid var(--blue-accent);
}

.credential strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-accent);
}

.credential span {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-accent), var(--blue-bright));
    border-radius: 8px 8px 0 0;
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 1.3rem;
}

.card-link {
    font-size: 0.85rem;
    color: var(--blue-accent);
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--blue-accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-accent);
}

/* ---- Stats ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--gray-light);
    border-radius: 6px;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue-accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-highlight {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--blue) !important;
    border-left: 3px solid var(--blue-accent);
    padding-left: 12px;
    margin-bottom: 0;
}

/* ---- Skills ---- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-4px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--blue-accent);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-item h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.skill-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Contact ---- */
.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-text {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-email {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-bright);
    padding: 16px 40px;
    border: 2px solid var(--blue-accent);
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.contact-email:hover {
    background: var(--blue-accent);
    color: var(--white);
}

.contact-phone {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--gray);
}

/* ---- Footer ---- */
.footer {
    background: var(--navy);
    color: var(--gray);
    text-align: center;
    padding: 24px;
    font-size: 0.85rem;
}

/* ---- Scroll Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 240px;
        margin: 0 auto;
    }

    .credential {
        text-align: left;
    }
}

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

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-links.open {
        max-height: 300px;
        padding: 16px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
