:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #00f2fe;
    --accent-secondary: #e841fe;
    --gradient-main: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--accent-primary);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-secondary);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-primary);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header / Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05) 0%, rgba(5, 5, 5, 1) 70%);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-btn {
    margin-top: 3rem;
    padding: 12px 30px;
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--accent-primary);
}

.hero-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* JALN LOGO STYLES (Provided Source) */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 1rem;
    transform: scale(0.8);
    /* Adjusted for mobile/hero balance */
}

@media (min-width: 768px) {
    .logo-container {
        transform: scale(1.2);
    }
}

.jaln {
    font-size: 5rem;
    color: #ffffff;
    letter-spacing: -2px;
    text-shadow:
        0 4px 0 #cccccc,
        0 8px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.dev {
    font-size: 3.5rem;
    letter-spacing: 12px;
    background: linear-gradient(90deg, #00f2fe, #e841fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(232, 65, 254, 0.5));
    position: relative;
    margin-top: 5px;
    z-index: 1;
}

/* About Section */
.about {
    padding: 5rem 10%;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.tagline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Portfolio Grid */
.portfolio {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-primary);
}

.card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.card-btn:hover {
    background: var(--accent-primary);
    color: #000;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background: #000;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

.footer-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-secondary);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #555;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .jaln {
        font-size: 3.5rem;
    }

    .dev {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for MVP */
    .hero h2 {
        font-size: 1.2rem;
    }
}

/* Featured Card (Added for Corneta Militar) */
.featured-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.featured-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    object-fit: cover;
}

.featured-card .content {
    flex: 1;
}

.featured-card .subtitle {
    color: var(--accent-secondary);
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.featured-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-card p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .featured-card {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .featured-card img {
        margin-bottom: 0;
        width: 200px;
        height: 200px;
    }

    .featured-card p {
        margin-left: 0;
    }
}