/* ========================================
   FAISAL - Network Engineer Portfolio
   Dark Theme with Animations
======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-primary: #00d4ff;
    --accent-secondary: #7b2fff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7b2fff 100%);
    --accent-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --font-family: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Background Animation
======================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.network-grid {
    position: absolute;
    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;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-nodes span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: var(--accent-glow);
    animation: float 15s infinite;
    opacity: 0.6;
}

.floating-nodes span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.floating-nodes span:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.floating-nodes span:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.floating-nodes span:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 13s; }
.floating-nodes span:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 15s; }
.floating-nodes span:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 11s; }
.floating-nodes span:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 14s; }
.floating-nodes span:nth-child(8) { left: 80%; animation-delay: 1.5s; animation-duration: 12s; }
.floating-nodes span:nth-child(9) { left: 90%; animation-delay: 3.5s; animation-duration: 16s; }
.floating-nodes span:nth-child(10) { left: 95%; animation-delay: 4.5s; animation-duration: 13s; }

@keyframes float {
    0%, 100% {
        top: 100%;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        top: -10%;
        opacity: 0;
    }
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(10, 10, 15, 0.95);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 10px;
    font-size: 1.2rem;
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.greeting {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.typing-container {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

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

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 3s ease-out infinite;
}

.ring-2 {
    animation-delay: 1.5s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.profile-icon {
    width: 180px;
    height: 180px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent-primary);
    border: 3px solid var(--accent-primary);
    box-shadow: var(--accent-glow), inset 0 0 30px rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 2;
}

.orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    animation: counter-rotate 20s linear infinite;
}

.orbit-item:nth-child(1) { top: -25px; left: 50%; transform: translateX(-50%); }
.orbit-item:nth-child(2) { right: -25px; top: 50%; transform: translateY(-50%); }
.orbit-item:nth-child(3) { bottom: -25px; left: 50%; transform: translateX(-50%); }
.orbit-item:nth-child(4) { left: -25px; top: 50%; transform: translateY(-50%); }

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

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

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

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

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

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

.animate-scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   About Section
======================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

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

.image-frame {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 20px;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent-primary);
}

.top-left { top: -5px; left: -5px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.top-right { top: -5px; right: -5px; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; }
.bottom-left { bottom: -5px; left: -5px; border-right: none; border-top: none; border-radius: 0 0 0 10px; }
.bottom-right { bottom: -5px; right: -5px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }

.about-icon {
    font-size: 8rem;
    color: var(--accent-primary);
    opacity: 0.8;
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* ========================================
   Skills Section
======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skill-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

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

.skill-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.skill-percent {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Certifications */
.certifications {
    text-align: center;
}

.certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 35px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.cert-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--accent-glow);
}

.cert-badge i {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.cert-badge span {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   Services Section
======================================== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(10deg);
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-hover-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card:hover .service-hover-content {
    max-height: 200px;
    margin-top: 20px;
}

.service-hover-content ul {
    text-align: right;
    padding-right: 20px;
}

.service-hover-content li {
    color: var(--accent-primary);
    margin-bottom: 8px;
    position: relative;
}

.service-hover-content li::before {
    content: '✓';
    margin-left: 10px;
}

/* ========================================
   Contact Section
======================================== */
.contact-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-text a,
.contact-text p {
    color: var(--text-primary);
    font-size: 1.05rem;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    transform: translateY(-5px);
    border-color: transparent;
}

/* Contact Form */
.contact-form-container {
    flex: 1;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
    transition: var(--transition-fast);
}

.form-group label {
    position: absolute;
    right: 0;
    top: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.form-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

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

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 18px;
}

.btn-submit:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.4);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--accent-primary);
}

.footer-content > p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-line {
    width: 100px;
    height: 2px;
    background: var(--accent-gradient);
    margin: 30px auto;
    border-radius: 1px;
}

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

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-description {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-medium);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .name {
        font-size: 3rem;
    }

    .typing-container {
        font-size: 1.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-container {
        width: 280px;
        height: 280px;
    }

    .profile-icon {
        width: 140px;
        height: 140px;
        font-size: 4rem;
    }

    .orbit {
        width: 240px;
        height: 240px;
    }

    .orbit-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

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

    .cert-badges {
        flex-direction: column;
        align-items: center;
    }

    .image-frame {
        width: 250px;
        height: 250px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }

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

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Loading Screen
======================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body:not(.loading) .loader-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    animation: pulse-loader 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes pulse-loader {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.loader-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: loading-progress 2s ease forwards;
}

@keyframes loading-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* ========================================
   Enhanced Glow Effects
======================================== */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.name {
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* Card Glow on Hover */
.skill-card:hover,
.service-card:hover,
.cert-badge:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), var(--shadow-lg);
}

/* Form Focus Glow */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
}

/* Profile Icon Glow Animation */
.profile-icon {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: var(--accent-glow), inset 0 0 30px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), inset 0 0 40px rgba(0, 212, 255, 0.2);
    }
}

/* Smooth transitions for all interactive elements */
.nav-links a,
.btn,
.social-link,
.skill-card,
.service-card,
.cert-badge,
.contact-item {
    will-change: transform;
}

/* Selection Color */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

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

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

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

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