/* ==================== CSS Variables ==================== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d1025;
    --bg-card: #111432;
    --accent-primary: #00d4ff;
    --accent-secondary: #00ff88;
    --accent-tertiary: #ff006e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #00d4ff 100%);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Animated Background ==================== */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-brand .cyber-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 30px 0;
}

.mobile-menu ul a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu ul a:hover {
    color: var(--accent-primary);
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 50px 50px;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.name {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.title-prefix {
    color: var(--accent-tertiary);
    font-family: 'Orbitron', monospace;
}

.title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    min-height: 36px;
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield {
    font-size: 8rem;
    color: var(--accent-primary);
    z-index: 2;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.8));
    }
}

.orbit {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-primary);
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 10s;
}

.orbit-2 {
    width: 280px;
    height: 280px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 360px;
    height: 360px;
    animation-duration: 20s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-credential {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
}

.btn-credential:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ==================== Section Titles ==================== */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.title-decoration {
    color: var(--accent-primary);
}

/* ==================== About Section ==================== */
.about {
    padding: 100px 50px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 50px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.about-card:hover .card-glow {
    opacity: 1;
}

.about-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--bg-primary);
    margin: 0 auto 30px;
    box-shadow: var(--shadow-glow);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* ==================== Certifications Section ==================== */
.certifications {
    padding: 100px 50px;
    background: var(--bg-secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.cert-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.cert-card:hover .card-glow {
    opacity: 1;
}

.cert-badge {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cert-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.cert-card:hover .cert-badge img {
    transform: scale(1.1);
}

.cert-info {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cert-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.cert-issuer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cert-issuer i {
    color: var(--accent-primary);
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 100px 50px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== Footer ==================== */
.footer {
    padding: 40px 50px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.copyright .cyber-text {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
}

.footer-tagline {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .name {
        font-size: 2.8rem;
    }

    .shield-container {
        width: 250px;
        height: 250px;
    }

    .shield {
        font-size: 6rem;
    }

    .orbit-1 { width: 160px; height: 160px; }
    .orbit-2 { width: 220px; height: 220px; }
    .orbit-3 { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 50px;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about, .certifications, .contact {
        padding: 60px 20px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .skills-container {
        gap: 10px;
    }

    .skill-tag {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}