/* Base Styles */
:root {
    --primary-color: #1a5276;
    --secondary-color: #2874a6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #2874a6;
    --secondary-color: #3498db;
    --dark-color: #f9fafb;
    --light-color: #111827;
    --gray-color: #9ca3af;
    --gradient-primary: linear-gradient(135deg, #2874a6 0%, #3498db 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: var(--transition);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    color: var(--dark-color);
    transition: var(--transition);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

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

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

.primary-btn:active {
    transform: translateY(1px);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.2);
}

.secondary-btn:active {
    transform: translateY(1px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] header {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] header.scrolled {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    font-size: 1.2rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-color) 0%, #f0f4f8 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    z-index: 0;
    animation: float 15s infinite alternate ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    z-index: 0;
    animation: float 20s infinite alternate-reverse ease-in-out;
}

/* Add floating particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 16s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 20px) rotate(5deg); }
    100% { transform: translate(-20px, 10px) rotate(-5deg); }
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

.hero h1::before {
    content: '<>';
    position: absolute;
    left: -40px;
    top: 0;
    font-size: 2rem;
    opacity: 0.2;
    color: var(--primary-color);
    font-family: monospace;
}

.hero h1::after {
    content: '</>';
    position: absolute;
    right: -40px;
    bottom: 0;
    font-size: 2rem;
    opacity: 0.2;
    color: var(--primary-color);
    font-family: monospace;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    z-index: -1;
    border-radius: 4px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--gray-color);
    animation: slideInLeft 1s ease 0.3s forwards;
    opacity: 0;
}

.cta-buttons {
    margin-bottom: 30px;
    animation: slideInLeft 1s ease 0.6s forwards;
    opacity: 0;
}

.cta-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.social-links {
    animation: slideInLeft 1s ease 0.9s forwards;
    opacity: 0;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--gray-color);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.social-links a:hover {
    color: var(--primary-color);
    top: -3px;
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .about {
    background: linear-gradient(135deg, var(--light-color) 0%, #0f172a 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s infinite alternate ease-in-out;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 30s infinite alternate-reverse ease-in-out;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 70px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.about-text p:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.about-image:hover::before {
    top: -10px;
    left: -10px;
}

.about-image img {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    filter: saturate(1.1) contrast(1.1);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Experience & Education Sections */
.experience, .education {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.experience {
    background-color: #f8fafc;
}

[data-theme="dark"] .experience {
    background-color: #111827;
}

.experience::before, .education::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    z-index: 0;
}

.experience::before {
    top: 10%;
    left: 5%;
}

.education::before {
    bottom: 10%;
    right: 5%;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    right: -10px;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-item:hover::before {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.timeline-content {
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .timeline-content {
    background-color: #1f2937;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.timeline-date {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 5px;
}

.timeline-content ul {
    margin-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 8px;
    position: relative;
}

.timeline-content ul li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 120px 0;
    background: linear-gradient(135deg, white 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skills {
    background: linear-gradient(135deg, var(--light-color) 0%, #0f172a 100%);
}

.skills::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 45s infinite alternate ease-in-out;
}

.skills::after {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 50s infinite alternate-reverse ease-in-out;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-category {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.skill-category.visible {
    transform: translateY(0);
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.skill-item {
    margin-bottom: 20px;
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateX(5px);
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.skill-level {
    height: 10px;
    background-color: rgba(229, 231, 235, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Certificates Section */
.certificates-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    flex: 1;
    min-width: 300px;
    max-width: calc(33.333% - 20px);
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px);
    opacity: 0;
    cursor: pointer;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

[data-theme="dark"] .certificate-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.certificate-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.certificate-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

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

.certificate-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 82, 118, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.certificate-overlay span {
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 50px;
    transition: var(--transition);
}

.certificate-overlay span:hover {
    background-color: white;
    color: var(--primary-color);
}

.certificate-info {
    padding: 20px;
}

.certificate-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.certificate-info h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.certificate-date {
    color: var(--gray-color);
    font-size: 0.8rem;
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    opacity: 0;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    animation: modalImageZoom 0.3s ease forwards;
}

@keyframes modalImageZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-caption {
    margin: 20px auto;
    display: block;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 15px 20px;
    background: rgba(26, 82, 118, 0.9);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(26, 82, 118, 0.8);
    transform: rotate(90deg) scale(1.1);
}

/* Modal controls */
.modal-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10000;
}

.modal-control-btn {
    background: rgba(26, 82, 118, 0.9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-control-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

.modal-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .projects {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

.projects::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 35s infinite alternate ease-in-out;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 40s infinite alternate-reverse ease-in-out;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.project-card {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .project-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.project-video {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-video video {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.project-content p {
    margin-bottom: 25px;
    color: var(--dark-color);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(26, 82, 118, 0.2);
    transition: var(--transition);
}

.project-tags span:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .contact {
    background: linear-gradient(135deg, var(--light-color) 0%, #0f172a 100%);
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 55s infinite alternate ease-in-out;
}

.contact::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
    animation: float 60s infinite alternate-reverse ease-in-out;
}

.contact-content {
    display: flex;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info, .contact-form {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.contact-info.visible, .contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .contact-info {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-info:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-info:hover::before {
    transform: scaleX(1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.contact-item:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.contact-item p, .contact-item a {
    color: var(--dark-color);
    transition: var(--transition);
}

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

.contact-form {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .contact-form {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-form:hover::before {
    transform: scaleX(1);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    background-color: transparent;
    color: var(--dark-color);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--gray-color);
    transition: var(--transition);
}

.form-group input:focus::placeholder, .form-group textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateX(10px);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-status.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] footer {
    background-color: #0f172a;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    opacity: 0.3;
}

footer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    opacity: 0.3;
}

footer p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 82, 118, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h1::before, .hero h1::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 50px;
    }

    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item::before {
        left: 20px;
        right: auto;
    }

    .timeline-item:nth-child(even)::before {
        left: 20px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-left: 4px solid var(--primary-color);
        border-right: none;
    }

    .certificate-card {
        max-width: calc(50% - 15px);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
    }

    [data-theme="dark"] .nav-links {
        background-color: #111827;
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .about-image img {
        max-width: 100%;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
    }

    [data-theme="dark"] .nav-links {
        background-color: #111827;
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .about-image img {
        max-width: 100%;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }

    .certificate-card {
        max-width: 100%;
    }

    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

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

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-content {
        padding: 20px;
    }

    .contact-info, .contact-form {
        padding: 25px;
    }

    .certificate-image {
        height: 180px;
    }

    .certificate-info h3 {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.project-links {
    margin-top: 1rem;
    text-align: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.github-link:hover {
    background-color: #2f363d;
    transform: translateY(-2px);
}

.github-link i {
    font-size: 1.2rem;
}
