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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #0f0f23;
    --darker: #0a0a1a;
    --light: #ffffff;
    --text: #e0e0e0;
    --text-muted: #8892b0;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(125deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.floating-shapes span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

.floating-shapes span:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.floating-shapes span:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.floating-shapes span:nth-child(3) { left: 30%; width: 60px; height: 60px; animation-delay: 4s; }
.floating-shapes span:nth-child(4) { left: 40%; width: 40px; height: 40px; animation-delay: 0s; animation-duration: 18s; }
.floating-shapes span:nth-child(5) { left: 50%; width: 30px; height: 30px; animation-delay: 0s; }
.floating-shapes span:nth-child(6) { left: 60%; width: 100px; height: 100px; animation-delay: 3s; }
.floating-shapes span:nth-child(7) { left: 70%; width: 50px; height: 50px; animation-delay: 7s; }
.floating-shapes span:nth-child(8) { left: 80%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.floating-shapes span:nth-child(9) { left: 85%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.floating-shapes span:nth-child(10) { left: 90%; width: 70px; height: 70px; animation-delay: 0s; animation-duration: 20s; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Hero Section */
.top_container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Terminal Header */
.terminal-header {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.greeting {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-family: 'Fira Code', monospace;
}

.terminal-prompt {
    color: var(--primary);
    margin-right: 8px;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

/* Glitch Effect */
.top_container h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin: 20px 0;
}

.glitch {
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

/* Typing Animation */
.typing-container {
    font-size: 1.5rem;
    margin: 15px 0 25px;
    min-height: 40px;
}

.static-text {
    color: var(--text-muted);
}

.typed-text {
    color: var(--accent);
    font-weight: 600;
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Tags */
.tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tag i {
    color: var(--primary);
}

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.badge {
    background: var(--gradient);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(102, 126, 234, 0.7); }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: var(--gradient);
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.cta-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Middle Container */
.middle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-header.light h2 {
    color: white;
}

.section-number {
    font-family: 'Fira Code', monospace;
    color: var(--primary);
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.image-wrapper {
    position: relative;
}

.my-image {
    width: 280px;
    height: 280px;
    border-radius: 10px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 280px;
    height: 280px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    z-index: 1;
    transition: all 0.4s ease;
}

.image-wrapper:hover .my-image {
    filter: grayscale(0%);
    transform: translate(-5px, -5px);
}

.image-wrapper:hover .image-border {
    transform: translate(5px, 5px);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

.traits {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.trait {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.trait:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

.trait i {
    color: var(--accent);
}

/* Focus Section */
.focus-section {
    background: rgba(15, 15, 35, 0.5);
    border-radius: 20px;
    padding: 80px 40px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.focus-item {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.focus-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.focus-item h4 {
    color: var(--light);
    margin-bottom: 8px;
    font-size: 1rem;
}

.focus-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: white;
}

.skill-category h3 {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
}

/* Skill badge colors */
.skill-badge.gcp { background: linear-gradient(135deg, #4285F4, #34A853); }
.skill-badge.azure { background: linear-gradient(135deg, #0078D4, #00BCF2); }
.skill-badge.aws { background: linear-gradient(135deg, #FF9900, #232F3E); }
.skill-badge.k8s { background: linear-gradient(135deg, #326CE5, #00D4FF); }
.skill-badge.docker { background: linear-gradient(135deg, #2496ED, #0db7ed); }
.skill-badge.helm { background: linear-gradient(135deg, #0F1689, #277A9F); }
.skill-badge.podman { background: linear-gradient(135deg, #0F1689, #277A9F); }
.skill-badge.terraform { background: linear-gradient(135deg, #7B42BC, #5C4EE5); }
.skill-badge.ansible { background: linear-gradient(135deg, #EE0000, #CC0000); }
.skill-badge.python { background: linear-gradient(135deg, #3776AB, #FFD43B); }
.skill-badge.go { background: linear-gradient(135deg, #00ADD8, #00A29C); }
.skill-badge.bash { background: linear-gradient(135deg, #4EAA25, #293133); }
.skill-badge.cpp { background: linear-gradient(135deg, #00599C, #004482); }
.skill-badge.kafka { background: linear-gradient(135deg, #231F20, #E0E0E0); color: #fff; }
.skill-badge.flink { background: linear-gradient(135deg, #E6526F, #E6526F); }
.skill-badge.clickhouse { background: linear-gradient(135deg, #FFCC01, #FFDB4D); color: #000; }
.skill-badge.grafana { background: linear-gradient(135deg, #F46800, #E6522C); }
.skill-badge.prometheus { background: linear-gradient(135deg, #E6522C, #DA4E31); }
.skill-badge.datadog { background: linear-gradient(135deg, #632CA6, #8A4FFF); }
.skill-badge.mysql { background: linear-gradient(135deg, #4479A1, #00758F); }
.skill-badge.postgres { background: linear-gradient(135deg, #336791, #0064A5); }
.skill-badge.redis { background: linear-gradient(135deg, #DC382D, #A41E11); }
.skill-badge.git { background: linear-gradient(135deg, #F05032, #DE4C36); }
.skill-badge.github { background: linear-gradient(135deg, #181717, #333); }
.skill-badge.linux { background: linear-gradient(135deg, #FCC624, #333); color: #000; }
.skill-badge.cloudarmor { background: linear-gradient(135deg, #4285F4, #1a73e8); }
.skill-badge.trivy { background: linear-gradient(135deg, #1904DA, #6366F1); }
.skill-badge.ssl { background: linear-gradient(135deg, #10B981, #059669); }
.skill-badge.nginx { background: linear-gradient(135deg, #009639, #00AA44); }
.skill-badge.dns { background: linear-gradient(135deg, #FF6B35, #F7931E); }
.skill-badge.vercel { background: linear-gradient(135deg, #000000, #333333); }
.skill-badge.devtron { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.skill-badge.githubhooks { background: linear-gradient(135deg, #238636, #2EA043); }
.skill-badge.gitlab { background: linear-gradient(135deg, #FC6D26, #E24329); }
.skill-badge.camera { background: linear-gradient(135deg, #6B7280, #4B5563); }
.skill-badge.sftpgo { background: linear-gradient(135deg, #3B82F6, #2563EB); }

/* VPN & Networking badges */
.skill-badge.vpngateway { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.skill-badge.openvpn { background: linear-gradient(135deg, #EA580C, #F97316); }
.skill-badge.ipsec { background: linear-gradient(135deg, #0891B2, #06B6D4); }
.skill-badge.peering { background: linear-gradient(135deg, #059669, #10B981); }
.skill-badge.troubleshoot { background: linear-gradient(135deg, #DC2626, #EF4444); }
.skill-badge.firewall { background: linear-gradient(135deg, #D97706, #F59E0B); }

/* Operating Systems badges */
.skill-badge.ubuntu { background: linear-gradient(135deg, #E95420, #DD4814); }
.skill-badge.rhel { background: linear-gradient(135deg, #EE0000, #CC0000); }
.skill-badge.kali { background: linear-gradient(135deg, #557C94, #2E6690); }
.skill-badge.windows { background: linear-gradient(135deg, #0078D4, #00A4EF); }
.skill-badge.macos { background: linear-gradient(135deg, #555555, #333333); }

/* Certifications Section */
.certifications {
    background: var(--gradient);
    border-radius: 30px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.certifications::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.cert-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.float-animation {
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.cert-item span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Quote Section */
.quote-section {
    padding: 60px 0;
}

.quote-card {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 30px;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.quote-author {
    margin-top: 20px;
    color: var(--primary);
    font-weight: 500;
}

/* Contact Section */
.contact-me {
    text-align: center;
    padding-bottom: 100px;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 10px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
    color: white;
}

.contact-btn.email {
    background: var(--gradient);
}

.contact-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-btn.linkedin {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
.bottom-container {
    background: var(--dark);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 55px;
    height: 55px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.4rem;
    transition: all 0.4s ease;
}

.social-icon:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-8px) rotate(360deg);
}

.footer-stats {
    margin: 25px 0;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .top_container h1 {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.1rem;
    }

    .tagline {
        gap: 10px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

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

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

    .about-image {
        display: flex;
        justify-content: center;
    }

    .my-image, .image-border {
        width: 220px;
        height: 220px;
    }

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

    .quote-text {
        font-size: 1.3rem;
    }

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

    .section-header {
        flex-wrap: wrap;
    }

    .focus-section, .certifications {
        padding: 50px 20px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }

    .traits {
        flex-direction: column;
    }
}
