/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Font Face */
@font-face {
    font-family: 'CustomArabic';
    src: url('font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CustomArabic';
    src: url('font.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --gold-primary: #d4af37;
    --gold-secondary: #f4d03f;
    --gold-light: #fbeaa7;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #808080;
    
    /* Typography */
    --font-arabic: 'Changa', sans-serif;
    --font-latin: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-latin);
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Arabic Text Styling */
.arabic, h1, h2, h3, .hero-title, .section-title {
    font-family: var(--font-arabic);
    font-weight: 700;
}

/* Custom Arabic Name Styling */
.arabic-name, .logo-text, .hero-name, .loading-text {
    font-family: 'CustomArabic', var(--font-arabic), serif;
    font-weight: 700;
    font-feature-settings: 'liga' on, 'calt' on;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #000000 50%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

#loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse 3s ease-in-out infinite;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    position: relative;
    z-index: 2;
}

.golden-circle {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 40px;
}

.golden-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--gold-primary);
    border-right: 4px solid var(--gold-secondary);
    border-radius: 50%;
    animation: luxuryRotate 2s linear infinite;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.golden-circle::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 2px solid transparent;
    border-bottom: 2px solid var(--gold-light);
    border-left: 2px solid var(--gold-primary);
    border-radius: 50%;
    animation: luxuryRotateReverse 1.5s linear infinite;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.loading-text {
    font-family: 'CustomArabic', var(--font-arabic);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary), var(--gold-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: luxuryTextReveal 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-secondary), transparent);
    animation: luxuryProgress 2s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: luxuryDots 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.loading-dot:nth-child(1) { animation-delay: 0s; }
.loading-dot:nth-child(2) { animation-delay: 0.3s; }
.loading-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes luxuryRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes luxuryRotateReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes luxuryTextReveal {
    0%, 100% { 
        opacity: 0;
        transform: translateY(20px);
    }
    50% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes luxuryProgress {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

@keyframes luxuryDots {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-text {
    font-family: 'CustomArabic', var(--font-arabic);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -2;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

.hero-text {
    animation: slideInFromLeft 1s ease-out;
}

.hero-name {
    font-family: 'CustomArabic', var(--font-arabic);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.name-part {
    display: block;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.badge:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(244, 208, 63, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.hero-image {
    animation: slideInFromRight 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    animation: float 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--gold-primary);
    margin: 0 auto 10px;
    animation: scrollLine 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-family: var(--font-arabic);
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--secondary-dark);
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    font-family: var(--font-arabic);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-item {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
}

.skill-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.skill-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience Section */
.experience {
    background: var(--tertiary-dark);
}

/* Certifications Section */
.certifications {
    background: var(--secondary-dark);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cert-item {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: var(--transition-smooth);
}

.cert-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.cert-item:hover::before {
    left: 0;
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.cert-icon i {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.cert-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    min-height: 170px;
}

.cert-badge iframe {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.cert-item:hover .cert-badge iframe {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.cert-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.cert-issuer {
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.cert-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-preview {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: #f8f8f8;
    position: relative;
    height: 300px;
}

.cert-preview embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cert-preview embed.loaded {
    opacity: 1;
}

.cert-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--gold-primary);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.cert-preview embed.loaded + ::before {
    display: none;
}

.cert-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.cert-btn:hover {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-light));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.cert-btn i {
    font-size: 1rem;
}

/* PDF Modal Styles */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.pdf-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.pdf-modal-content {
    background: var(--secondary-dark);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.pdf-modal-header {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--primary-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-header h3 {
    margin: 0;
    font-weight: 600;
}

.pdf-close {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.pdf-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.pdf-container {
    position: relative;
    height: 600px;
    background: #fff;
}

.pdf-container embed {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    display: none;
    text-align: center;
    padding: 50px;
    color: var(--text-primary);
    background: var(--tertiary-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pdf-fallback p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 2px;
    height: 100%;
    background: var(--gold-primary);
    transform: translateX(50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--gold-primary);
    border-radius: 50%;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.timeline-content {
    width: 45%;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 25px;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.timeline-organization {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--font-arabic);
}

/* Contact Section */
.contact {
    background: var(--secondary-dark);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-family: var(--font-arabic);
    line-height: 1.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.contact-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-content p {
    color: var(--text-muted);
    font-family: var(--font-arabic);
}

.footer-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollLine {
    0% {
        height: 0;
    }
    50% {
        height: 50px;
    }
    100% {
        height: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        right: 30px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row;
        padding-right: 60px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-marker {
        right: 20px;
        transform: none;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .footer-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cert-item {
        min-height: 500px;
    }
    
    .cert-preview {
        height: 250px;
    }
    
    .cert-actions {
        flex-direction: column;
        align-items: center;
    }
}