/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-color: #333333;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1002;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Performance Optimizations */
html {
    scroll-behavior: smooth;
    /* Optimize scrolling performance */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
    /* Optimize text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 1001;
    transition: width 0.1s ease;
    /* Performance optimization */
    will-change: width;
    transform: translateZ(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Performance optimization */
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Performance optimization */
    will-change: transform;
}

.navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.navbar .logo-image {
    width: 40px;
    height: 40px;
    border-radius: 40%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.navbar .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.05;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.02;
    }

    100% {
        transform: scale(1);
        opacity: 0.05;
    }
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
    color: var(--primary-color);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

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

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

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hero-content:hover .highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}

.typing-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    min-height: 2.4rem;
    position: relative;
    display: inline-block;
    color: var(--accent-color);
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -4px;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.primary-btn {
    background: var(--gradient);
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
    color: var(--secondary-color);
    background: var(--gradient);
    box-shadow: var(--shadow-md);
}

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

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

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) rotate(360deg);
    background: var(--gradient);
    box-shadow: var(--shadow-md);
}

.social-links a i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover i {
    animation: bounce 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bounce {

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

    50% {
        transform: scale(1.2);
    }
}

/* About Section */
.about {
    padding: 8rem 5%;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    animation: gradientMove 15s ease-in-out infinite alternate;
}

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

    100% {
        transform: translate(5%, 5%);
    }
}

.about h2,
.skills-section h2,
.certificates-section h2,
.education-section h2,
.experience-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
}

.about h2::before,
.skills-section h2::before,
.certificates-section h2::before,
.education-section h2::before,
.experience-section h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    z-index: 1;
}

.about h2::after,
.skills-section h2::after,
.certificates-section h2::after,
.education-section h2::after,
.experience-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0.5);
    transform-origin: center;
    transition: transform 0.5s ease;
    z-index: 2;
}

.about:hover h2::after,
.skills-section:hover h2::after,
.certificates-section:hover h2::after,
.education-section:hover h2::after,
.experience-section:hover h2::after {
    transform: scaleX(1);
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.profile-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
    filter: contrast(1.05) brightness(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-image:hover::before {
    transform: translate(5px, 5px);
    opacity: 1;
}

.profile-img:hover {
    transform: scale(1.02) rotate(1deg);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    max-width: 60ch;
}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    max-width: 60ch;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric-item {
    flex: 1 1 160px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-number {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tags span {
    padding: 0.7rem 1.2rem;
    background: var(--gradient);
    color: var(--secondary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.skill-tags span:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Projects Section */
.projects {
    padding: 8rem 5%;
    background-color: var(--secondary-color);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
}

.project-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
    max-width: 960px;
}

.highlight-item {
    flex: 1 1 180px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.highlight-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.highlight-label {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

.projects h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0.5);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.projects:hover h2::after {
    transform: scaleX(1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

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

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

.project-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 220px;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.2), transparent);
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-card p {
    padding: 0 1.5rem;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    flex: 1;
    margin-bottom: 1.5rem;
}

.project-links {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.project-links .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.2rem;
    background: var(--gradient);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    min-height: 45px;
}

.project-links .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.project-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-links .btn:hover::before {
    opacity: 1;
}

.project-links .btn span {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.project-links .btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.project-links .btn:hover i {
    transform: translateX(3px);
}

.project-links .btn:first-child {
    background: var(--gradient);
}

.project-links .btn:last-child {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.project-links .btn:last-child:hover {
    background: var(--gradient);
    color: var(--secondary-color);
    border-color: transparent;
}

@media (max-width: 768px) {
    .project-links {
        flex-direction: column;
    }

    .project-links .btn {
        width: 100%;
    }
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    color: var(--primary-color);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.contact:hover h2::after {
    width: 150px;
}

.contact-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(360deg);
}

.contact-text {
    flex: 1;
    max-width: 54ch;
}

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

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

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links-contact a {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

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

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--gradient);
    color: var(--secondary-color);
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 3rem;
    }

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

    .nav-links a {
        font-size: 1.4rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .menu-btn {
        display: block;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .about,
    .projects,
    .contact {
        padding: 5rem 5%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-img {
        height: 350px;
    }

    .about-text {
        padding: 1.5rem;
    }

    .project-highlights {
        gap: 1rem;
        flex-direction: column;
    }

    .metric-item,
    .highlight-item {
        flex: 1 1 100%;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links .btn {
        width: 100%;
    }

    .navbar .logo-image {
        width: 35px;
        height: 35px;
    }

    .navbar .logo-text {
        font-size: 1.5rem;
    }
}

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

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

.hero-content,
.about-content,
.project-card,
.contact-form {
    animation: fadeIn 1s ease-out;
}

.skills-section {
    padding: 8rem 5%;
    background-color: var(--secondary-color);
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    z-index: 0;
}

.skills-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0.5);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.skills-section:hover h2::after {
    transform: scaleX(1);
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.skill-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.03));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
}

.skill-card:hover::before {
    transform: translateX(0);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02) translateZ(0);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
}

.skill-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover img {
    transform: rotate(8deg) scale(1.15);
}

.skill-info {
    flex: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-info {
    transform: translateY(-3px);
}

.skill-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-info p {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-info p {
    opacity: 0.7;
    transform: translateY(0);
}

.skill-card.active {
    animation: pulse 1.5s infinite;
}

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

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 5rem 5%;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-card img {
        width: 40px;
        height: 40px;
    }
}

/* Certificates Section */
.certificates-section {
    padding: 8rem 5%;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    animation: gradientMove 15s ease-in-out infinite alternate;
}

.certificates-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    transition: width 0.5s ease;
}

.certificates-section:hover h2::after {
    width: 120px;
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    counter-reset: certificate-count;
}

.certificate-card {
    background: var(--secondary-color);
    border-radius: 18px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    counter-increment: certificate-count;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.certificate-card::before {
    content: counter(certificate-count, decimal-leading-zero);
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: 0;
}

.certificate-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
    border-color: rgba(0, 0, 0, 0.16);
}

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

.certificate-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.certificate-card:hover .certificate-icon {
    transform: translateY(-4px) scale(1.04);
}

.certificate-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.certificate-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.certificate-content h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.45);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

.certificate-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    row-gap: 0.25rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--accent-color);
}

.certificate-issuer {
    font-weight: 600;
}

.certificate-date {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
}

.certificate-date::before {
    content: '•';
    margin-right: 0.75rem;
    color: rgba(0, 0, 0, 0.35);
}

.certificate-description {
    font-size: 0.98rem;
    color: var(--text-color);
    line-height: 1.7;
    max-width: 56ch;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.certificate-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

.certificate-link:hover i {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .certificate-card {
        padding: 2.2rem;
    }
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 5rem 5%;
    }

    .certificates-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificate-card::before {
        font-size: 2.9rem;
        right: 2rem;
        top: 1.7rem;
    }
}

@media (max-width: 520px) {
    .certificate-card {
        padding: 2rem;
    }

    .certificate-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .certificate-content h3 {
        font-size: 1.2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 5%;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary-color);
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.testimonials-section:hover h2::after {
    width: 150px;
}

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

.testimonial-card {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

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

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

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
}

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

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1rem;
}

.testimonial-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
}

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

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

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

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

    .testimonial-stats {
        gap: 2rem;
    }

    .stat-item {
        flex: 1 0 40%;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Experience Section */
.experience-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    position: relative;
    min-height: auto;
}

.experience-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    margin: 0;
    position: relative;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-content {
    padding: 20px;
    position: relative;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.timeline-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-details li {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
}

.timeline-details li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline {
        padding: 15px;
        gap: 15px;
    }

    .timeline-item {
        min-width: 100%;
    }

    .timeline-content {
        padding: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .timeline-item {
        min-width: calc(50% - 20px);
    }
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(51, 51, 51, 0.9) 100%);
    z-index: 1;
    transform: skewY(0deg);
    /* Remove skew effect */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    z-index: 1;
    flex: 1;
    max-width: 240px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.cta-button.primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button.primary:hover {
    background: #f8f8f8;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 2.2em;
        padding: 0 15px;
    }

    .cta-content p {
        font-size: 1.1em;
        padding: 0 15px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 100%;
        padding: 14px 28px;
    }
}

/* Add animation for CTA section */
.cta-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Education Section */
.education-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    position: relative;
}

.education-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.education-card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Specific styles for each card type */
.education-card.high-school .education-header {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.education-card.college .education-header {
    background: linear-gradient(135deg, #000000, #333333);
}

.education-card.certifications .education-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

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

.education-header {
    padding: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.education-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.education-card:hover .education-icon {
    transform: rotate(360deg);
}

.education-title {
    flex: 1;
}

.education-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-title h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    opacity: 0.9;
}

.education-year {
    display: inline-block;
    font-size: 0.85rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.education-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.education-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-details li {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.education-details li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-card.certifications {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .education-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .education-header {
        padding: 15px;
    }

    .education-content {
        padding: 15px;
    }
}