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

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

.image-container {
    position: relative;
    width: 400px;
    /* Fixed frame size */
    height: 400px;
    /* Fixed frame size */
}

.profile-pic {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
    animation: float 6s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* make image stay inside circle */
}

.profile-pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* scale down the image inside circle */
    display: block;
    border-radius: 50%;
}

.image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

:root {
    --primary: #00f5ff;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --dark: #0a0a0f;
    --darker: #050508;
    --card-bg: #1a1a2e;
    --text: #e4e4e7;
    --text-dim: #a1a1aa;
    --border: rgba(0, 245, 255, 0.2);
}

[data-theme="light"] {
    --dark: #f8fafc;
    --darker: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-dim: #64748b;
    --border: rgba(124, 58, 237, 0.2);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    transition: background 0.3s;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.5;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
    border-radius: 50%;
    animation: float-shape 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -50px;
    animation-delay: 5s;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 245, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.8));
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

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

    from {
        transform: translateY(50px);
    }
}

.hero-text h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    animation: slideIn 0.8s ease-out 0.5s backwards;
    text-transform: uppercase;
    letter-spacing: 3px;
}

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

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-weight: 900;
    animation: slideIn 0.8s ease-out 0.7s backwards;
    background-size: 200% 200%;
    animation: slideIn 0.8s ease-out 0.7s backwards, gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: slideIn 0.8s ease-out 0.9s backwards;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.9;
    animation: slideIn 0.8s ease-out 1.1s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideIn 0.8s ease-out 1.3s backwards;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

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

.image-container {
    position: relative;
    width: 400px;
    height: 400px;

}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.image-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Section Styles */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-description {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.about-image {
    position: relative;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-item {
    background: var(--card-bg);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.tech-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text);
}

.skill-percentage {
    color: var(--primary);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skill-item.animate .skill-progress {
    width: var(--width);
}

/* Experience Timeline */
.experience-section {
    margin-top: 4rem;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 6px var(--primary);
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.2);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-dim);
    line-height: 1.7;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

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

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.3);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    height: 180px;

    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(124, 58, 237, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .project-image::after {
    opacity: 0.1;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.project-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 245, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

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

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(124, 58, 237, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}

.slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.slides {
    display: flex;
    width: 400%;
    /* 4 images × 100% each */
    height: 100%;
    animation: slide 24s infinite ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
}

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

/* proper smooth sliding keyframes */
@keyframes slide {
    0% {
        transform: translateX(0%);
    }

    20% {
        transform: translateX(0%);
    }

    25% {
        transform: translateX(-100%);
    }

    45% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-200%);
    }

    70% {
        transform: translateX(-200%);
    }

    75% {
        transform: translateX(-300%);
    }

    95% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(0%);
    }
}

.project-image:hover::after {
    opacity: 0.3;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-dim);
}



.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.4);
}

/* Download CV Section */
.cv-section {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(124, 58, 237, 0.1));
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    border: 2px solid var(--border);
    margin: 4rem 0;
}

.cv-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-section p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}



.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover .contact-hover-effect {
    left: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    flex-shrink: 0;
    box-shadow: 0 5px 15px var(--glow);
}

.contact-details h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.contact-cta {
    display: flex;
    flex-direction: column;

}

.cta-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    height: 427px;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.cta-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-link .tooltip {
    position: absolute;
    bottom: -40px;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--darker);
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

footer p {
    margin-bottom: 1rem;
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-content,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s;
        border-left: 1px solid var(--border);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

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

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

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

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

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .cv-section {
        padding: 3rem 2rem;
    }

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

    .profile-pic {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .contact-form {
        padding: 2rem 1.5rem;
    }
}


.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    /* Icon size */
    background: none;
    /* Background removed */
    color: #ff7e5f;
    /* Fallback color */
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    /* Gradient color */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

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

.certificate-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.certificate-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

.certificate-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.certificate-content {
    padding: 2rem;
}

.certificate-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.certificate-issuer {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-date {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.certificate-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    background: rgba(0, 245, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.certificate-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.certificate-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

.slider-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 25px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .certificates-container {
        grid-template-columns: 1fr;
    }

    .certificate-image {
        height: 220px;
    }
}