:root {
    /* Light Theme Colors */
    --primary-color: #df3428;
    --primary-light: #df3428;
    --primary-dark: white;
    --accent-color: #00B4D8;
    --background: #ffffff;
    --background-alt: #ebecec;
    --text-primary: #030303;
    --text-secondary: #141414;
    --border-color: #E9ECEF;
    --card-bg: #e2dede;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(94, 92, 92, 0.918);
    
    /* Animation Variables */
    --transition-speed: 0.3s;
    --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --primary-color: #00B4D8;
    --primary-light: #48CAE4;
    --primary-dark: #c3d4dd;
    --accent-color: #90E0EF;
    --background: #121212;
    --background-alt: #1E1E1E;
    --text-primary: #F8F9FA;
    --text-secondary: #ADB5BD;
    --border-color: #2D2D2D;
    --card-bg: #1E1E1E;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 180, 216, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-switch {
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s var(--animation-timing);
    overflow: hidden;
    position: relative;
}

#theme-switch:hover {
    transform: translateY(-2px);
}

#theme-switch i {
    font-size: 1.2rem;
    color: var(--primary-color);
    position: absolute;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

#theme-switch .fa-sun {
    opacity: 0;
    transform: translateY(20px);
}

#theme-switch .fa-moon {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] #theme-switch .fa-sun {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] #theme-switch .fa-moon {
    opacity: 0;
    transform: translateY(-20px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 100;
    transition: background-color var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
    height: 80px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    
}

.logo span {
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--animation-timing);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 50%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

/* .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-light);
    opacity: 0.3;
    z-index: -1;
} */

.hero-cta {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) var(--animation-timing);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-weight: 500;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.hero-image {
    width: 45%;
    position: relative;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transform: perspective(800px) rotateY(-10deg) rotateX(10deg);
    transition: transform 1s var(--animation-timing);
}

.tech-stack:hover {
    transform: perspective(800px) rotateY(0) rotateX(0);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform var(--transition-speed) var(--animation-timing), 
                box-shadow var(--transition-speed) var(--animation-timing);
}

.tech-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.tech-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: 3px;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.separator {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: -2px;
}

.separator::before {
    left: -10px;
}

.separator::after {
    right: -10px;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.image-container {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform var(--transition-speed) var(--animation-timing);
}

.image-container:hover {
    transform: rotate(0);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-speed) var(--animation-timing);
}

.image-container:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.skills {
    margin-top: 30px;
}

.skill-category {
    margin-bottom: 20px;
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background-color: var(--background-alt);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.skill-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 20px;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform var(--transition-speed) var(--animation-timing),
                box-shadow var(--transition-speed) var(--animation-timing);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--animation-timing);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: justify;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content:space-evenly;
}

.project-tech span {
    background-color: var(--background-alt);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.project-links a {
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

/* Education Section */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 200px;
    justify-items: center;
    justify-content: center;
}

.education-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform var(--transition-speed) var(--animation-timing),
                box-shadow var(--transition-speed) var(--animation-timing);
    
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

/* Uniform Education Card Height */
.education-card {
    min-height: 320px; /* Adjust as needed for your content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.education-img {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.education-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--animation-timing);
}

.education-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.education-info h2 {
    font-size: 1.6rem;
    font-weight: 1600;
    margin-bottom: 5px;
}

.education-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.education-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}



/* Certifications Section */
.certifications {
    background-color: var(--background-alt);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform var(--transition-speed) var(--animation-timing),
                box-shadow var(--transition-speed) var(--animation-timing);
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.cert-img {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cert-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--animation-timing);
}

.cert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cert-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cert-link {
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.cert-link i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform var(--transition-speed) ease;
}

.cert-link:hover {
    color: var(--primary-dark);
}

.cert-link:hover i {
    transform: translateX(3px);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn i {
    transition: transform var(--transition-speed) ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--background-alt);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo span {
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--animation-timing), 
                transform 0.8s var(--animation-timing);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .tech-stack {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin: 0 auto;
    }

    .scroll-indicator {
        bottom: 10px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 1000;
        margin-right: 50px;
    }
    
    nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 20px 0;
        z-index: 99;
    }
    
    nav.active ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }

    .scroll-indicator {
        bottom: 5px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .cert-img {
        max-width: 90%; /* Reduce the width slightly for smaller screens */
        margin: 0 auto 20px; /* Center the image and add spacing */
    }

    .education-img {
        max-width: 100%; /* Reduce the width slightly for smaller screens */
        max-height: 300px; /* Maintain aspect ratio */
        height: auto;
        display: block;
        object-fit: contain;
        margin: 0 auto 20px; /* Center the image and add spacing */
    }
}