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

/* Prevent FOUC and layout shifts on mobile */
@media (max-width: 768px) {
    body {
        visibility: hidden;
    }
    
    body.loaded {
        visibility: visible;
    }
    
    /* Optimize animations for mobile */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Prevent layout shifts during loading */
    .hero-content {
        min-height: 50vh;
    }
    
    .hero-title {
        min-height: 3rem;
    }
    
    .hero-subtitle {
        min-height: 2rem;
    }
}

:root {
    /* Color Palette - Professional Dark Blue Theme */
    --primary-color: #00d4ff; /* Bright cyan-blue */
    --primary-dark: #0066ff; /* Electric blue */
    --secondary-color: #00a8cc; /* Medium blue */
    --accent-color: #0066ff; /* Electric blue accent */
    
    /* Dark Theme Colors */
    --bg-primary: #0f1419; /* Dark blue-gray */
    --bg-secondary: #1a2332; /* Slightly lighter blue-gray */
    --bg-tertiary: #253141; /* Medium blue-gray */
    --bg-card: #1e2835; /* Card background */
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0c4de; /* Light blue-gray */
    --text-muted: #6b7a99; /* Muted blue-gray */
    
    /* Gradients - Professional Blue Theme */
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0066ff);
    --gradient-secondary: linear-gradient(135deg, #00a8cc, #00d4ff);
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #253141 50%, #1e2835 75%, #0f1419 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #253141 50%, #1e2835 75%, #0f1419 100%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.nav-logo .logo-image {
    height: 200px;
    width: 300px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: var(--transition-normal);
}

.nav-logo .logo-image:hover {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
    transform: scale(1.05);
}

/* Fallback for text logo if image doesn't load */
.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0;
}

/* Digital Badges */
.hero-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-badge {
    position: absolute;
    width: 90px;
    height: 90px;
    opacity: 0.5;
    animation: badgeFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
    transition: all 0.4s ease;
    will-change: transform;
    /* Position will be set by JavaScript */
    top: 0;
    left: 0;
}

.hero-badge:hover {
    opacity: 0.9;
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.7));
    pointer-events: auto;
}

.hero-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
    padding: 5px;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(3deg) scale(1.05);
    }
    50% {
        transform: translateY(-25px) rotate(-2deg) scale(1);
    }
    75% {
        transform: translateY(-10px) rotate(2deg) scale(1.03);
    }
}

/* Responsive badge sizing */
@media (max-width: 768px) {
    .hero-badge {
        width: 60px;
        height: 60px;
        opacity: 0.4;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    background: transparent;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    white-space: nowrap;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-logo-image {
    height: 300px;
    width: 400px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 2s ease-in-out infinite;
}

.hero-bg-logo {
    max-width: 80%;
    max-height: 80%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
    animation: logoFloat 4s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
}

.hacker-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bg-primary);
}

.profile-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
}

/* TryHackMe Badge */
.tryhackme-badge-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    min-height: 120px;
}

.tryhackme-badge-container iframe {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    width: 100%;
    max-width: 700px;
    height: 120px;
    border: hidden;
    overflow: hidden;
    /* Optimize for mobile loading */
    loading: lazy;
    background: var(--bg-card);
}

/* Mobile optimizations for iframe */
@media (max-width: 768px) {
    .tryhackme-badge-container {
        min-height: 100px;
    }
    
    .tryhackme-badge-container iframe {
        height: 100px;
        max-width: 100%;
    }
    
    /* Additional mobile performance optimizations */
    .hero-visual {
        display: none; /* Hide complex animations on mobile */
    }
    
    .cyber-animation {
        display: none; /* Hide complex animations on mobile */
    }
    
    /* Reduce animation complexity on mobile */
    .hero-logo,
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.tryhackme-badge-container iframe:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(10px);
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    position: relative;
}

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-dark);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    padding: 0.5rem;
}

.certification-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.cert-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-icon-image {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
    transition: var(--transition-normal);
    margin-bottom: 1rem;
}

.certification-card:hover .cert-icon-image {
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
    transform: scale(1.1);
}

.certification-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.certification-card p {
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(10px);
}

.skills-content {
    display: grid;
    gap: 3rem;
}

.skills-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-item {
    display: grid;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
}

.skill-level {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.8rem;
    padding: 0.5rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.tool-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.soft-skill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.soft-skill:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.soft-skill i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Events Section */
.events {
    padding: var(--section-padding);
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
}

.events-content {
    max-width: 1000px;
    margin: 0 auto;
}

.events-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.events-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slideshow-wrapper {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    text-align: center;
}

.slide-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-btn:hover {
    background: rgba(0, 212, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev {
    left: 20px;
}

.slideshow-btn.next {
    right: 20px;
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Certificate Preview Modal */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cert-modal-content {
    position: relative;
    background: var(--bg-card);
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.cert-modal-close:hover {
    color: var(--primary-color);
}

.cert-modal-body {
    margin-top: 20px;
    text-align: center;
}

.cert-modal-body h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.certification-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Contact Section */
/* Competitions Section */
.competitions {
    padding: var(--section-padding);
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
}

.competitions-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.competition-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.competition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.competition-card:hover::before {
    transform: scaleX(1);
}

.competition-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.competition-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.competition-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.competition-achievement {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.competition-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact {
    padding: var(--section-padding);
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(10px);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.contact-icon-image {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
    transition: var(--transition-normal);
}

.contact-icon-image:hover {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    transform: scale(1.1);
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-method a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.social-icon-image {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
    transition: var(--transition-normal);
}

.footer-social a:hover .social-icon-image {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 2rem 1rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        width: 100%;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
        margin-bottom: 1rem;
        white-space: normal;
        overflow-wrap: break-word;
    }
    
    .title-line {
        display: block;
        margin-bottom: 0.3rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.4;
        max-width: 90%;
        margin: 0 auto 2rem;
        word-wrap: break-word;
    }
    
    .hero-logo-image {
        width: clamp(120px, 25vw, 200px);
        height: auto;
        max-width: 100%;
    }
    
    .hero-buttons {
        gap: 1rem;
        margin-top: 1.5rem;
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .soft-skills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.1;
        margin-bottom: 0.8rem;
        white-space: normal;
        overflow-wrap: break-word;
    }
    
    .title-line {
        display: block;
        margin-bottom: 0.2rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        max-width: 95%;
        margin: 0 auto 1.5rem;
    }
    
    .hero-logo-image {
        width: clamp(100px, 30vw, 150px);
        height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cyber-animation {
        width: 150px;
        height: 150px;
    }
    
    .hacker-icon {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
