:root {
    /* New vibrant color palette */
    --primary-color: #4361ee;       /* Vibrant blue */
    --secondary-color: #3a0ca3;     /* Deep purple */
    --accent-color: #7209b7;        /* Bright purple */
    --accent-light: #f72585;        /* Pink accent */
    --text-dark: #2b2d42;           /* Dark blue-gray for text */
    --text-light: #6c757d;          /* Medium gray for secondary text */
    --bg-light: #ffffff;            /* White background */
    --bg-gray: #f8f9fa;             /* Very light gray background */
    --bg-dark: #212529;             /* Dark background for dark mode */
    --shadow: 0 5px 15px rgba(67, 97, 238, 0.15);
    --transition: all 0.3s ease;
}

/* Dark mode variables */
body.dark-mode {
    --primary-color: #4cc9f0;       /* Bright blue for dark mode */
    --secondary-color: #4361ee;     /* Vibrant blue for dark mode */
    --accent-color: #7209b7;        /* Bright purple maintained */
    --accent-light: #f72585;        /* Pink accent maintained */
    --text-dark: #f8f9fa;           /* Very light gray for dark mode text */
    --text-light: #dee2e6;          /* Light gray for dark mode secondary text */
    --bg-light: #212529;            /* Dark background */
    --bg-gray: #343a40;             /* Medium-dark background */
    --bg-dark: #141414;             /* Very dark background */
    --shadow: 0 5px 15px rgba(76, 201, 240, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Updated button styles for more dimension */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.25);
}

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

.secondary-btn:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.tertiary-btn {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.tertiary-btn:hover {
    background-color: rgba(67, 97, 238, 0.2);
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Header - Increased padding for more height */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 15px 0; /* Increased from 10px to 15px */
}

header .container {
    width: 95%;
    max-width: 1400px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Logo styling - Updated for larger IITB logo image */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 25px; /* Slightly increased margin */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.iitb-logo {
    height: 55px; /* Increased from 40px to 55px */
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .iitb-logo {
    transform: scale(1.05);
}

/* Navigation area - Centered and expanded */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
    font-weight: 600;
}

/* Header right area - Improved alignment */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Dark Mode Toggle - Enhanced styling */
.theme-switch {
    position: relative;
    display: inline-block;
    height: 25px;
    margin-left: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: #111;
    border-radius: 25px;
    position: relative;
    padding: 5px;
    transition: var(--transition);
}

.toggle-label .fa-sun {
    color: #f39c12;
    font-size: 12px;
    margin-left: 4px;
}

.toggle-label .fa-moon {
    color: #f1c40f;
    font-size: 12px;
    margin-right: 4px;
}

.toggle-ball {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
    left: 2px;
}

/* Dark mode header styles */
body.dark-mode header {
    background-color: rgba(33, 37, 41, 0.95);
}

body.dark-mode .logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    box-shadow: 0 2px 10px rgba(76, 201, 240, 0.3);
}

/* Responsive adjustments for fullscreen nav */
@media screen and (max-width: 992px) {
    .main-nav {
        justify-content: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        padding: 0 5px;
    }
    
    .main-nav a {
        padding: 8px 8px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .iitb-logo {
        height: 45px; /* Slightly smaller on medium screens */
    }
}

@media screen and (max-width: 768px) {
    header .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-container {
        margin-right: 15px;
    }
    
    .main-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
    }
    
    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 3px;
    }
    
    .iitb-logo {
        height: 40px; /* Even smaller on mobile */
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.05));
    top: -250px;
    left: -250px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(114, 9, 183, 0.05), rgba(67, 97, 238, 0.1));
    bottom: -150px;
    right: -150px;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

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

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.2), rgba(114, 9, 183, 0.2));
    z-index: -1;
    border-radius: 4px;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-container {
    width: 350px;
    height: 350px;
    position: relative;
}

.profile-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ddd;
    background-image: url('../assets/abhi_pic.jpeg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    border: 8px solid white;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* Enhanced About Section */
.about {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.07), transparent 70%);
    top: -200px;
    right: -100px;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.05), transparent 70%);
    bottom: -150px;
    left: -100px;
    z-index: 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

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

/* Enhanced cards with better visuals */
.about-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-top: 4px solid transparent;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.05), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(67, 97, 238, 0.2);
}

/* Bio card specifics */
.bio-card {
    border-left: none;
    border-top: 4px solid var(--primary-color);
    background-image: linear-gradient(135deg, rgba(67, 97, 238, 0.03) 0%, rgba(114, 9, 183, 0.02) 100%);
}

.bio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.bio-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(67, 97, 238, 0.08);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.stat-icon {
    color: var(--primary-color);
}

/* Approach card enhancements */
.approach-points {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approach-point {
    display: flex;
    align-items: center;
    gap: 10px;
}

.approach-point i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Passion card enhancements */
.passion-interests {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.about-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.about-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.about-text {
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

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

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

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.2), rgba(114, 9, 183, 0.2));
    z-index: -1;
    border-radius: 3px;
}

/* Dark mode styles for About section */
body.dark-mode .about-card {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .bio-card {
    background-image: linear-gradient(135deg, rgba(76, 201, 240, 0.05) 0%, rgba(114, 9, 183, 0.03) 100%);
}

body.dark-mode .bio-stat {
    background-color: rgba(76, 201, 240, 0.12);
}

body.dark-mode .about-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .highlight::after {
    background: linear-gradient(90deg, rgba(76, 201, 240, 0.25), rgba(247, 37, 133, 0.25));
}

/* Responsive styles for About section */
@media screen and (max-width: 768px) {
    .skills-cards {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 25px;
    }
    
    .about-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .about-header h3 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 576px) {
    .about-card {
        padding: 20px;
    }
    
    .about-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .about-icon {
        margin: 0 0 10px 0;
    }
    
    .about-header h3 {
        font-size: 1.2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .bio-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .bio-stat {
        width: 100%;
    }
    
    .passion-interests {
        justify-content: center;
    }
}

/* Enhanced Work Experience Section */
.experience {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative;
}

.experience .section-title {
    font-size: 2.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 60px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.experience-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.experience-entry {
    display: flex;
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.experience-entry.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Entry markers styling */
.experience-marker {
    flex: 0 0 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-circle {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    z-index: 2;
}

.marker-line {
    width: 3px;
    flex-grow: 1;
    background: linear-gradient(to bottom, var(--primary-color), rgba(67, 97, 238, 0.3));
    margin-top: 10px;
    z-index: 1;
}

.experience-entry:last-child .marker-line {
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* Content styling */
.experience-content {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.15);
}

.experience-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 15px 25px;
    margin: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
}

.experience-date::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.experience-details {
    padding: 20px 25px;
}

.experience-role {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.experience-institution {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
    font-family: 'Inter', 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}

.institution-logo {
    height: 24px;
    width: auto;
    margin-right: 10px;
    border-radius: 4px;
}

/* Remove the Font Awesome icon since we're using the logo instead */
.experience-institution::before {
    content: none;
}

.experience-session {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    background-color: rgba(67, 97, 238, 0.08);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

.experience-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Position of Responsibility Section - Updated to match Experience Section */
.responsibilities {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative;
}

.responsibilities .section-title {
    font-size: 2.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 60px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Remove the old responsibilities grid styling */
.responsibilities-grid {
    display: none;
}

/* The responsibilities section now inherits all styles from the experience section */
.responsibilities.experience .experience-timeline,
.responsibilities.experience .experience-entry,
.responsibilities.experience .experience-marker,
.responsibilities.experience .marker-circle,
.responsibilities.experience .marker-line,
.responsibilities.experience .experience-content,
.responsibilities.experience .experience-date,
.responsibilities.experience .experience-details,
.responsibilities.experience .experience-role,
.responsibilities.experience .experience-institution,
.responsibilities.experience .experience-session,
.responsibilities.experience .experience-description {
    /* Inherits all relevant styles from experience section */
}

/* Specific overrides for responsibility section if needed */
.responsibilities .experience-date {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.responsibilities .marker-circle {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

/* Dark mode specific styling for responsibilities */
body.dark-mode .responsibilities {
    background-color: var(--bg-light);
}

body.dark-mode .responsibilities .experience-content {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .responsibilities .marker-circle {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.3);
    border: 4px solid var(--bg-light);
}

body.dark-mode .responsibilities .marker-line {
    background: linear-gradient(to bottom, var(--accent-color), rgba(247, 37, 133, 0.3));
}

body.dark-mode .responsibilities .experience-entry:last-child .marker-line {
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

/* Media queries for responsibilities section - inherit from experience section */
@media screen and (max-width: 768px) {
    .responsibilities.experience .experience-entry {
        flex-direction: column;
    }
    
    .responsibilities.experience .experience-marker {
        flex-direction: row;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .responsibilities.experience .marker-line {
        height: 3px;
        width: auto;
        background: linear-gradient(to right, var(--accent-color), rgba(247, 37, 133, 0.3));
    }
    
    .responsibilities.experience .experience-entry:last-child .marker-line {
        background: linear-gradient(to right, var(--accent-color), transparent);
    }
    
    body.dark-mode .responsibilities.experience .marker-line {
        background: linear-gradient(to right, var(--accent-color), rgba(247, 37, 133, 0.3));
    }
    
    body.dark-mode .responsibilities.experience .experience-entry:last-child .marker-line {
        background: linear-gradient(to right, var(--accent-color), transparent);
    }
}

/* Education Section */
.education {
    padding: 120px 0;
    background-color: var(--bg-gray);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    left: 0;
}

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

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: var(--shadow);
    position: relative;
    margin: 0 30px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -44px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -44px;
}

.timeline-item h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-item h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.timeline-date {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
    gap: 8px;
}

.tech {
    background-color: rgba(76, 201, 240, 0.15);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-links a {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-links a:hover {
    color: var(--secondary-color);
}

/* Skills Section */
.skills {
    padding: 120px 0;
    background-color: var(--bg-gray);
}

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

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(94, 23, 235, 0.2);
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

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

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

.skill-name {
    font-weight: 500;
}

/* Certifications Section */
.certifications {
    padding: 120px 0;
    background-color: var(--bg-light);
}

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

.cert-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.cert-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: var(--primary-color);
}

.cert-content h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cert-provider {
    font-weight: 500;
    color: var(--primary-color);
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Achievements Section */
.achievements {
    padding: 120px 0;
    background-color: var(--bg-gray);
}

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

.achievement-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.achievement-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: var(--primary-color);
}

.achievement-content h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(94, 23, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-text h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-text p a {
    color: var(--primary-color);
}

.contact-text p a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.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 #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(94, 23, 235, 0.1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.footer-logo h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
}

.footer-contact .contact-item i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-contact .contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.footer-right p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

/* Dark mode adjustments for footer */
body.dark-mode .footer-contact .contact-item i {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments for footer */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
}

/* Certificate Showcase Section */
.certificate-showcase {
    padding: 120px 0;
    background-color: var(--bg-gray);
}

.section-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.certificate-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 200px;
    background-color: #f5f5f5;
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.certificate-item:hover .certificate-overlay {
    height: 100%;
}

.certificate-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.view-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.view-btn:hover {
    background-color: var(--secondary-color);
}

/* Certificate View Button */
.view-certificate-btn {
    background-color: rgba(94, 23, 235, 0.1);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.view-certificate-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
}

#certificate-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Dark Mode Toggle */
.theme-switch {
    position: relative;
    display: inline-block;
    height: 25px;
}

.dark-mode-toggle {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: #111;
    border-radius: 25px;
    position: relative;
    padding: 5px;
    transition: var(--transition);
}

.toggle-label .fa-sun {
    color: #f39c12;
    font-size: 12px;
}

.toggle-label .fa-moon {
    color: #f1c40f;
    font-size: 12px;
}

.toggle-ball {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
    left: 2px;
}

.dark-mode-toggle:checked + .toggle-label .toggle-ball {
    transform: translateX(24px);
}

.dark-mode-toggle:checked + .toggle-label {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Adjustments for dark mode */
body.dark-mode header {
    background-color: rgba(33, 37, 41, 0.95);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #212529 0%, #141414 100%);
}

body.dark-mode .profile-circle {
    border-color: var(--bg-dark);
}

/* Dark mode styles for work experience section */
body.dark-mode .experience {
    background-color: var(--bg-light);
}

body.dark-mode .experience-content {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .experience-date {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-dark);
}

body.dark-mode .experience-role {
    color: var(--text-dark);
}

body.dark-mode .experience-institution {
    color: var(--text-light);
}

body.dark-mode .experience-description {
    color: var(--text-light);
}

body.dark-mode .marker-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.3);
    border: 4px solid var(--bg-light);
}

body.dark-mode .marker-line {
    background: linear-gradient(to bottom, var(--primary-color), rgba(76, 201, 240, 0.3));
}

body.dark-mode .experience-entry:last-child .marker-line {
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

body.dark-mode .experience-session {
    background-color: rgba(76, 201, 240, 0.15);
    color: var(--primary-color);
}

body.dark-mode .experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Specific media query adjustments for dark mode experience section */
@media screen and (max-width: 768px) {
    body.dark-mode .experience-entry {
        flex-direction: column;
    }
    
    body.dark-mode .marker-line {
        background: linear-gradient(to right, var(--primary-color), rgba(76, 201, 240, 0.3));
    }
    
    body.dark-mode .experience-entry:last-child .marker-line {
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
}

/* Dark mode for Education section */
body.dark-mode .education {
    background-color: var(--bg-gray);
}

body.dark-mode .timeline::before {
    background-color: var(--primary-color);
}

body.dark-mode .timeline-content {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .timeline-content::after {
    background-color: var(--bg-gray);
    border-color: var(--primary-color);
}

body.dark-mode .timeline-item h3 {
    color: var(--primary-color);
}

body.dark-mode .timeline-item h4 {
    color: var(--text-dark);
}

/* Dark mode for Projects section */
body.dark-mode .projects {
    background-color: var(--bg-light);
}

body.dark-mode .project-card {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .project-content h3 {
    color: var(--text-dark);
}

body.dark-mode .project-content p {
    color: var(--text-light);
}

body.dark-mode .tech {
    background-color: rgba(76, 201, 240, 0.15);
    color: var(--primary-color);
}

/* Dark mode for Skills section */
body.dark-mode .skills {
    background-color: var(--bg-gray);
}

body.dark-mode .skill-category h3 {
    color: var(--text-dark);
    border-bottom-color: rgba(76, 201, 240, 0.3);
}

body.dark-mode .skill-name {
    color: var(--text-light);
}

/* Dark mode for Certifications section */
body.dark-mode .certifications {
    background-color: var(--bg-light);
}

body.dark-mode .cert-card {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cert-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cert-content h3 {
    color: var(--text-dark);
}

body.dark-mode .view-certificate-btn {
    background-color: rgba(76, 201, 240, 0.15);
    color: var(--primary-color);
}

body.dark-mode .view-certificate-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* Dark mode for Responsibilities section */
body.dark-mode .responsibilities {
    background-color: var(--bg-light);
}

body.dark-mode .responsibilities .experience-content {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .responsibilities .marker-circle {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.3);
    border: 4px solid var(--bg-light);
}

body.dark-mode .responsibilities .marker-line {
    background: linear-gradient(to bottom, var(--accent-color), rgba(247, 37, 133, 0.3));
}

body.dark-mode .responsibilities .experience-entry:last-child .marker-line {
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

/* Dark mode for Achievements section */
body.dark-mode .achievements {
    background-color: var(--bg-gray);
}

body.dark-mode .achievement-card {
    background-color: var(--bg-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .achievement-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .achievement-content h3 {
    color: var(--text-dark);
}

body.dark-mode .achievement-content p {
    color: var(--text-light);
}

body.dark-mode .achievement-icon {
    color: var(--primary-color);
}

/* Media queries for mobile responsiveness */
@media screen and (max-width: 768px) {
    .experience-entry {
        flex-direction: column;
    }
    
    .experience-marker {
        flex: 0 0 auto;
        flex-direction: row;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .marker-circle {
        margin-right: 15px;
    }
    
    .marker-line {
        height: 3px;
        width: auto;
        flex-grow: 1;
        margin-top: 0;
        background: linear-gradient(to right, var(--primary-color), rgba(67, 97, 238, 0.3));
    }
    
    .experience-entry:last-child .marker-line {
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
    
    .experience .section-title {
        font-size: 2.2rem;
    }
    
    .experience-date {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .experience-role {
        font-size: 1.3rem;
    }
    
    /* Responsibilities section mobile styles */
    .responsibilities .section-title {
        font-size: 2.2rem;
    }
    
    .responsibilities .experience-date {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .responsibilities .experience-role {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 576px) {
    .experience .section-title {
        font-size: 2rem;
    }
    
    .experience-date {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .experience-role {
        font-size: 1.2rem;
    }
    
    .experience-institution {
        font-size: 1rem;
    }
    
    .experience-details {
        padding: 15px;
    }
    
    /* Responsibilities section mobile styles */
    .responsibilities .section-title {
        font-size: 2rem;
    }
    
    .responsibilities .experience-date {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .responsibilities .experience-role {
        font-size: 1.2rem;
    }
    
    .responsibilities .experience-institution {
        font-size: 1rem;
    }
    
    .responsibilities .experience-details {
        padding: 15px;
    }
}

/* Dark mode success message */
body.dark-mode .success-message {
    background-color: rgba(76, 201, 240, 0.15);
    color: var(--primary-color);
}
