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

:root {
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
    --background: #0F172A;
    --surface: #1E293B;
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --accent: #06B6D4;
    --border-color: rgba(148, 163, 184, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #1a1f35 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== UTILITIES ==================== */

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

.section-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s ease-out;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

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

/* ==================== NAVIGATION ==================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    animation: slideInDown 0.8s ease-out;
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* ==================== HERO SECTION ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-effect {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
    min-height: 32px;
}

.typing-text {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 30px;
    background: var(--accent);
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

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

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.hero-image {
    animation: slideInRight 0.8s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 490px;
    height: 490px;
    background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.7) 0%, rgba(139, 92, 246, 0.4) 40%, rgba(6, 182, 212, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(70px);
    animation: glowPulse 4s ease-in-out infinite;
    bottom: -50px;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #000000 45%, #0b1a30 70%, #0c4a6e 90%, #0284c7 100%);
    border-radius: 50%;
    z-index: 1;
    bottom: 20px;
    border: 2px solid rgba(14, 165, 233, 0.95);
    box-shadow: 
        0 0 20px rgba(14, 165, 233, 0.95),
        0 0 40px rgba(56, 189, 248, 0.8),
        0 0 70px rgba(37, 99, 235, 0.6),
        0 0 150px rgba(30, 58, 138, 0.45),
        inset 0 0 35px rgba(14, 165, 233, 0.6);
}

.image-container {
    position: relative;
    z-index: 2;
    border-radius: 0;
    overflow: visible;
    width: 530px;
    height: 550px;
    background: transparent;
}

.glow-effect {
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.8) 30%, rgba(6, 182, 212, 0.8) 70%, transparent 100%) 1;
    z-index: 0;
    filter: blur(20px);
    animation: glowFloat 8s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), inset 0 0 40px rgba(59, 130, 246, 0.2);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), inset 0 0 50px rgba(139, 92, 246, 0.3);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -50px;
    left: -50px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 5%;
    animation: float 30s ease-in-out infinite;
}

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

.image-placeholder,
.image-placeholder-project {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    font-size: 4rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.image-placeholder:hover,
.image-placeholder-project:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: var(--primary-color);
}

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

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

/* ==================== ANIMATIONS ==================== */

@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 slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==================== ABOUT SECTION ==================== */

.about {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    animation: fadeInUp 0.8s ease-out;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stat-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==================== EDUCATION SECTION ==================== */

.education {
    padding: 100px 20px;
}

.education-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 40px 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 0 40px;
    display: flex;
    gap: 40px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-marker {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-marker {
    margin-left: auto;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--background);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.9);
    }
}

.timeline-content {
    flex: 1;
    max-width: 500px;
}

.education-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.edu-icon-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.edu-icon-logo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

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

.edu-school {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.edu-year {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.edu-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.edu-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.timeline-item:nth-child(odd) .edu-links {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .edu-links {
    justify-content: flex-start;
}

.edu-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.edu-link-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.edu-link-btn i {
    font-size: 0.95rem;
}

/* ==================== SKILLS SECTION ==================== */

.skills {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
}

.skills-category {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.skill-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    animation: fillProgress 1.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@keyframes fillProgress {
    from {
        width: 0;
    }
}

.skill-percentage {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skills-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.skill-badge:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.skill-badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.skill-badge span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== PROJECTS SECTION ==================== */

.projects {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
}

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

.certificates {
    padding: 100px 20px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, transparent 100%);
}

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

.certificate-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

.certificate-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    cursor: zoom-in;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.certificate-title {
    margin: 0;
    padding: 18px 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

.certificate-viewer {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    z-index: 5000;
}

.certificate-viewer.active {
    display: flex;
}

.certificate-viewer img {
    max-width: min(95vw, 1100px);
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.certificate-viewer-caption {
    margin-top: 18px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    max-width: 900px;
}

.certificate-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.project-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.project-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 0.5s ease-in;
    cursor: pointer;
}

.carousel-img.active {
    display: block;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(10px);
    opacity: 0;
}

.project-carousel:hover .carousel-btn {
    opacity: 1;
    background: rgba(59, 130, 246, 0.8);
}

.carousel-btn:hover {
    background: rgba(59, 130, 246, 1) !important;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

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

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

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transform: scale(1.2);
}

/* Portrait Carousel for Mobile Screenshots */
.carousel-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-portrait .carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-portrait .carousel-img {
    max-width: 60%;
    height: auto;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.tech-badge i {
    font-size: 1rem;
}

.project-features {
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-features h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
}

.project-link.live {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.project-link.live:hover {
    background: var(--secondary-color);
    color: white;
}

/* ==================== CONTACT SECTION ==================== */

.contact {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    word-break: break-all;
}

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

.contact-form {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 50px;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

.form-message {
    position: fixed;
    top: 30px;
    right: 20px;
    padding: 15px 40px 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.form-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(34, 197, 94, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.8);
    color: #ffffff;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.8);
    color: #ffffff;
}

.form-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-message .close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.form-message .close-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

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

.contact-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.social-icons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

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

/* ==================== FOOTER ==================== */

.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    /* Hero Section Mobile Responsiveness */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

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

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .typing-effect {
        min-height: 28px;
        margin-bottom: 15px;
    }

    .hero-description {
        max-width: 500px;
        margin: 0 auto 25px;
    }

    .hero-image {
        min-height: 320px;
        margin-top: 20px;
    }

    .image-container {
        width: 290px;
        height: 300px;
    }

    .hero-image::after {
        width: 180px;
        height: 180px;
        bottom: 10px;
        box-shadow: 
            0 0 15px rgba(14, 165, 233, 0.95),
            0 0 30px rgba(56, 189, 248, 0.75),
            0 0 50px rgba(37, 99, 235, 0.55),
            inset 0 0 20px rgba(14, 165, 233, 0.45);
    }

    .hero-image::before {
        width: 290px;
        height: 290px;
        bottom: -20px;
    }

    .glow-effect {
        width: 300px;
        height: 300px;
        bottom: -25%;
        right: -10%;
    }

    /* Education Section Mobile Responsiveness */
    .education-timeline {
        padding: 20px 0;
    }

    .education-timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        flex-direction: row !important;
        text-align: left !important;
        padding-left: 45px;
        padding-right: 0;
        width: 100%;
        gap: 20px;
    }

    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
        top: 35px;
    }

    .timeline-content {
        max-width: 100%;
        width: 100%;
    }

    .education-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        text-align: left !important;
    }

    .edu-icon-logo {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .timeline-item:nth-child(odd) .edu-links,
    .timeline-item:nth-child(even) .edu-links {
        justify-content: flex-start !important;
    }

    /* Project Carousel Mobile Image Scaling */
    .carousel-img {
        object-fit: contain !important;
        background: rgba(15, 23, 42, 0.4);
    }

    .carousel-portrait .carousel-img {
        max-width: 85% !important;
    }

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        width: 100%;
        text-align: center;
        gap: 20px;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

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

    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .education-content {
        grid-template-columns: 1fr;
    }

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

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

    .certificate-viewer {
        padding: 18px;
    }

    .certificate-viewer img {
        max-width: 100%;
        max-height: 72vh;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-column: span 2;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

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

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .skills-icons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

    .education-card {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .certificate-title {
        font-size: 0.95rem;
        padding: 16px;
    }

    .edu-icon {
        align-self: flex-start;
    }

    .skill-item {
        padding: 15px;
    }
}

/* ==================== SCROLL ANIMATION ==================== */

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

/* Staggered animations */
.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

.project-card:nth-child(4) {
    animation-delay: 0.3s;
}
