/* 
 * Gurkirat Singh's Portfolio - Main Stylesheet
 * Made with vanilla CSS
 * Theme: Royal palette with metallic gold and dark purple accents
 */

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --black: #000000;
    --gold: #FFD700;
    --dark-gold: #DAA520;
    --dark-purple: #4B0082;
    --light-purple: #6A0DAD;
    --white: #ffffff;
    --gray: #333333;
    --light-gray: #f5f5f5;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Baloo 2', cursive;
    --font-accent: 'Pacifico', cursive;
    
    /* Sizes & Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
    --border-radius: 8px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

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

a:hover {
    color: var(--dark-gold);
}

section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

img {
    max-width: 100%;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

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

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

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

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
    justify-content: center;
}

.theme-icon {
    color: var(--white);
    font-size: 0.8rem;
    margin: 0 5px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-purple);
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--white);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1E88E5; /* Bright blue */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Light mode theme variables */
body.light-mode {
    background-color: #f8f9fa;
    color: #212529;
}

body.light-mode .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
}

body.light-mode .nav-link {
    color: #343a40;
}

body.light-mode .nav-link:hover {
    color: #1E88E5; /* Bright blue */
}

body.light-mode .nav-link::after {
    background-color: #1E88E5; /* Bright blue */
}

body.light-mode .logo {
    color: #1E88E5; /* Bright blue */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: logoGlowLight 3s infinite alternate;
}

@keyframes logoGlowLight {
    0% {
        text-shadow: 0 0 5px rgba(30, 136, 229, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(30, 136, 229, 0.7), 0 0 20px rgba(30, 136, 229, 0.4);
    }
}

body.light-mode .section-title {
    color: #0D47A1; /* Deeper blue for better contrast */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    animation: titleGlowLight 3s infinite alternate;
}

body.light-mode .section-title::after {
    background: linear-gradient(to right, transparent, #1E88E5, transparent);
}

body.light-mode .section-subtitle {
    color: #1976D2; /* Slightly darker blue */
}

body.light-mode .section-subtitle-label {
    color: #1976D2; /* Slightly darker blue */
}

body.light-mode .hero-subtitle {
    color: #1976D2; /* Slightly darker blue */
}

body.light-mode .hero-subtitle::after {
    background-color: #1976D2;
}

body.light-mode .theme-icon {
    color: #495057; /* Dark gray */
}

body.light-mode .skill-item i, body.light-mode .tool-item i {
    color: #1E88E5 !important; /* Bright blue - using !important to override var(--gold) */
}

body.light-mode .skill-item:hover i, body.light-mode .tool-item:hover i {
    transform: scale(1.15);
    color: #0D47A1; /* Deeper blue for better contrast */
    text-shadow: 0 0 15px rgba(30, 136, 229, 0.5);
}

body.light-mode .quote {
    color: #3949AB; /* Indigo blue */
    border-left-color: #3949AB;
    background-color: rgba(57, 73, 171, 0.05);
}

body.light-mode .social-icon {
    color: #1E88E5; /* Bright blue */
    border: 1px solid rgba(30, 136, 229, 0.2);
}

body.light-mode .social-icon:hover {
    background-color: #1E88E5; /* Bright blue */
    color: var(--white);
}

body.light-mode .project-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), #f8f9fa);
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .project-card:hover {
    box-shadow: 0 15px 30px rgba(25, 118, 210, 0.15);
    border-color: rgba(30, 136, 229, 0.3);
}

body.light-mode .project-content h3 {
    color: #0D47A1; /* Deeper blue for better contrast */
}

body.light-mode .btn-primary {
    background: linear-gradient(135deg, #1E88E5, #0D47A1);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.3);
}

body.light-mode .btn-primary:hover {
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.5);
    transform: translateY(-2px);
}

body.light-mode .hero h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #1976D2 !important;
    text-shadow: none !important;
}

body.light-mode .tag {
    background-color: rgba(25, 118, 210, 0.1);
    color: #0D47A1;
    border: 1px solid rgba(25, 118, 210, 0.2);
}

body.light-mode .skill-item, body.light-mode .tool-item {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border: 1px solid #e3e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .skill-item:hover, body.light-mode .tool-item:hover {
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.15);
    border-color: rgba(25, 118, 210, 0.3);
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

body.light-mode .contact {
    background-color: #f1f5f9;
}

body.light-mode .email-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(240, 240, 240, 0.9), rgba(225, 225, 225, 0.8));
    border: 1px solid rgba(30, 136, 229, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .email-container::before {
    background: linear-gradient(45deg, transparent, rgba(30, 136, 229, 0.2), transparent);
}

body.light-mode .email-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 0 15px rgba(30, 136, 229, 0.1);
    border-color: rgba(30, 136, 229, 0.3);
}

body.light-mode .email-buttons button,
body.light-mode .email-buttons a {
    color: #1976D2;
}

body.light-mode .email-buttons button:hover,
body.light-mode .email-buttons a:hover {
    color: #0D47A1;
}

body.light-mode footer {
    background-color: #e8eef7;
    border-top: 1px solid #d4e0f7;
}

body.light-mode .project-link {
    color: #1976D2;
    background-color: rgba(25, 118, 210, 0.08);
    border: 1px solid rgba(25, 118, 210, 0.12);
}

body.light-mode .project-link:hover {
    color: #0D47A1;
    background-color: rgba(25, 118, 210, 0.15);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.2);
}

body.light-mode .private-link {
    background-color: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.12);
}

body.light-mode .private-link:hover {
    background-color: rgba(211, 47, 47, 0.12);
    color: #c62828;
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.15);
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.aos-animate[data-aos="zoom-in"] {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced animations for project cards and skills */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.project-card:hover {
    animation: pulse 2s infinite ease-in-out;
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.skill-item:hover, .tool-item:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(75, 0, 130, 0.3), rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.skill-item:hover i, .tool-item:hover i {
    animation: bounce 1s infinite;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

body.light-mode .skill-item:hover, 
body.light-mode .tool-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(30, 136, 229, 0.3);
    border-color: #1976D2;
    background: linear-gradient(145deg, rgba(240, 240, 240, 1), rgba(225, 225, 225, 0.9));
}

body.light-mode .skill-item:hover i, 
body.light-mode .tool-item:hover i {
    color: #1976D2;
    text-shadow: 0 0 10px rgba(30, 136, 229, 0.7);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-family: var(--font-secondary);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--black);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    position: relative;
    animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
    }
}

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

.nav-menu li {
    margin: 0 15px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
    opacity: 0;
}

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

.nav-link:hover::after {
    width: 80%;
    opacity: 1;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
}

.hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 20px;
}

.hero-content > * {
    opacity: 1;
    transform: translateY(0);
    animation: staggeredFadeIn 0.8s forwards;
}

.hero-subtitle {
    animation-delay: 0.3s;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    animation-delay: 0.6s;
    font-size: 4rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
    animation-delay: 0.9s;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-buttons {
    animation-delay: 1.2s;
    margin-top: 30px;
}

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

/* This duplicate definition has been removed */

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.8);
    font-family: var(--font-accent);
}

/* Dark-specific h1 styles to ensure dark mode properly applies gold gradient */
body:not(.light-mode) .hero h1 {
    background: linear-gradient(to right, var(--gold), var(--dark-gold)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.hero .subtitle {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--white);
    font-family: var(--font-secondary);
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--gold);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--gold); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Enhanced Hero Section Styles */
.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--gold);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    animation: buttonGlow 2s infinite alternate;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: fadeInUp 2s infinite;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator i {
    margin-top: 8px;
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    100% { opacity: 0.8; transform: translate(-50%, 0); }
}

body.light-mode .scroll-indicator {
    color: #1976D2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

body.light-mode .btn-primary {
    background: linear-gradient(135deg, #1E88E5, #0D47A1) !important;
    color: white !important;
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.3) !important;
}

body.light-mode .hero-buttons {
    animation: buttonGlowLight 2s infinite alternate !important;
}

body.light-mode .skill-item i, body.light-mode .tool-item i {
    color: #1E88E5 !important;
}

body.light-mode .skill-item:hover i, body.light-mode .tool-item:hover i {
    color: #0D47A1 !important;
    text-shadow: 0 0 15px rgba(30, 136, 229, 0.5) !important;
}

.hero-buttons .btn {
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    transform: skewX(-30deg);
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--dark-gold);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--gold);
    color: var(--black);
}

body.light-mode .hero-buttons .btn-primary:hover {
    background-color: #0D47A1;
}

body.light-mode .hero-buttons .btn-outline:hover {
    background-color: #1976D2;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-family: var(--font-secondary);
    animation: titleGlow 3s infinite alternate;
    font-weight: 700;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    100% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
}

@keyframes titleGlowLight {
    0% { text-shadow: 0 0 5px rgba(30, 136, 229, 0.3); }
    100% { text-shadow: 0 0 15px rgba(30, 136, 229, 0.7); }
}

@keyframes buttonGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    100% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)); }
}

@keyframes buttonGlowLight {
    0% { filter: drop-shadow(0 0 5px rgba(30, 136, 229, 0.4)); }
    100% { filter: drop-shadow(0 0 12px rgba(30, 136, 229, 0.7)); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    border-radius: 2px;
    animation: expandWidth 2s ease-in-out forwards;
}

@keyframes expandWidth {
    0% { width: 0; left: 50%; }
    100% { width: 60%; left: 20%; }
}

/* Section Subtitle Styles */
.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 30px;
    position: relative;
    font-family: var(--font-secondary);
}

.section-subtitle.with-animation {
    overflow: hidden;
    position: relative;
}

.section-subtitle.with-animation::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    transform: translateX(-50%);
}

.skills-subtitle, .tools-subtitle {
    margin-top: 40px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    text-align: center;
    background-color: var(--black);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 30px auto;
    justify-content: center;
}

.project-card {
    background: linear-gradient(145deg, rgba(75, 0, 130, 0.2), rgba(0, 0, 0, 0.8));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 25px;
    position: relative;
}

.project-card:hover {
    animation: none;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

.project-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-purple), var(--gold), var(--dark-purple));
    background-size: 200% auto;
    animation: shimmer 2s linear infinite;
}

/* Light mode project card hover effect */
body.light-mode .project-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(30, 136, 229, 0.2);
}

body.light-mode .project-card:hover::before {
    background: linear-gradient(90deg, #1976D2, #64B5F6, #1976D2);
}

.project-content h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-family: var(--font-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-content {
    flex: 1;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.project-link {
    font-size: 1.3rem;
    color: var(--white);
    margin-left: 15px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.1);
}

.project-link:hover {
    color: var(--gold);
    transform: translateY(-5px) rotate(10deg);
    background-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.private-link {
    cursor: help;
    background-color: rgba(255, 0, 0, 0.1);
}

.private-link:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff5555;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.project-card:hover .tag {
    animation: tagPop 0.5s forwards;
    animation-delay: calc(var(--tag-index, 0) * 0.1s);
}

@keyframes tagPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background-color: rgba(255, 215, 0, 0.25);
        border-color: var(--gold);
    }
    100% {
        transform: scale(1);
        background-color: rgba(255, 215, 0, 0.2);
    }
}

body.light-mode .tag {
    background-color: rgba(30, 136, 229, 0.15);
    color: #1976D2;
    border: 1px solid rgba(30, 136, 229, 0.1);
}

body.light-mode .project-card:hover .tag {
    animation: tagPopLight 0.5s forwards;
    animation-delay: calc(var(--tag-index, 0) * 0.1s);
}

@keyframes tagPopLight {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background-color: rgba(30, 136, 229, 0.25);
        border-color: #1976D2;
    }
    100% {
        transform: scale(1);
        background-color: rgba(30, 136, 229, 0.2);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    text-align: center;
    background-color: rgba(75, 0, 130, 0.1);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 30px auto;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.profile-pic {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin: 0 auto 30px;
    width: 200px;
    height: 200px;
    transition: all 0.5s ease;
    animation: float 6s infinite ease-in-out;
}

.profile-pic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px rgba(255, 215, 0, 0.3);
    animation: pulse 4s infinite;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 50%;
}

.profile-pic:hover img {
    transform: scale(1.1);
}

body.light-mode .profile-pic::after {
    box-shadow: inset 0 0 0 3px rgba(30, 136, 229, 0.2);
    opacity: 0.6;
}

body.light-mode .profile-pic {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.bio {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.bio p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.quote {
    font-family: 'Lora', serif; /* Changed from var(--font-accent) to Lora for better readability */
    font-style: italic;
    color: var(--gold);
    font-size: 1.3rem !important;
    position: relative;
    padding: 25px;
    border-left: 3px solid var(--gold);
    background-color: rgba(255, 215, 0, 0.05);
    margin: 35px 0 !important;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    text-align: center;
    background-color: var(--black);
    background-image: radial-gradient(circle at center, rgba(75, 0, 130, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.5;
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
}

body.light-mode .skills::before {
    background: radial-gradient(circle, rgba(30, 136, 229, 0.1) 0%, rgba(30, 136, 229, 0) 70%);
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
}

.skills .skills-grid, 
.skills .tools-grid, 
.skills .skills-header, 
.skills .section-subtitle {
    position: relative;
    z-index: 1;
}

/* Enhanced Skill Cards */
.skills-grid, .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

/* Enhanced skill and tool item styling */
.skill-item, .tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, rgba(75, 0, 130, 0.2), rgba(0, 0, 0, 0.8));
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 215, 0, 0.15);
    min-height: 180px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: rotate(-2deg);
}

/* Make skill icons bigger */
.skill-item i, .tool-item i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.skill-item span, .tool-item span {
    font-size: 1.1rem;
    margin-top: 8px;
    font-weight: 500;
}

.skill-item::after, .tool-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px; /* Control the border width */
    background: linear-gradient(225deg, var(--gold), transparent, transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-item:hover::after, .tool-item:hover::after {
    opacity: 1;
}

/* Add glowing effect on hover */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    }
}

.skill-item:hover, .tool-item:hover {
    animation: none;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Light mode version */
body.light-mode .skill-item::after, body.light-mode .tool-item::after {
    background: linear-gradient(225deg, #1E88E5, transparent, transparent);
}

@keyframes glowLight {
    0% {
        box-shadow: 0 0 5px rgba(30, 136, 229, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(30, 136, 229, 0.2);
    }
}

body.light-mode .skill-item:hover, body.light-mode .tool-item:hover {
    animation: floatLight 3s infinite ease-in-out;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.15);
    border-color: rgba(25, 118, 210, 0.3);
}

@keyframes floatLight {
    0% { transform: translateY(-5px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(-5px); }
}

/* Profile picture light mode styles */
body.light-mode .profile-pic img {
    border: 4px solid #1E88E5; /* Blue border for light mode */
    box-shadow: 0 0 25px rgba(30, 136, 229, 0.3);
}

body.light-mode .profile-pic:hover img {
    box-shadow: 0 0 35px rgba(30, 136, 229, 0.5);
}

/* ===== CONTACT SECTION ===== */
.contact {
    text-align: center;
    background-color: rgba(75, 0, 130, 0.1);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-content.simplified {
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.email-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(75, 0, 130, 0.2), rgba(0, 0, 0, 0.8));
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.email-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: all 0.6s ease;
}

.email-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.email-container:hover::before {
    top: 100%;
    left: 100%;
}

#email {
    font-weight: 500;
    margin-right: 15px;
    font-size: 1rem;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
    display: inline-block;
    word-break: normal;
}

.email-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn, .send-email-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover, .send-email-btn:hover {
    color: var(--dark-gold);
    transform: scale(1.2);
}

.tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    left: 0;
    margin: 0 auto;
    background-color: var(--gold);
    color: var(--black);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: fit-content;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 128, 0, 0.2);
    color: #4caf50;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.form-success.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.form-success i {
    margin-right: 8px;
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px 0;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.5);
}

body.light-mode .social-icon {
    background-color: rgba(0, 0, 0, 0.1);
    color: #1976D2;
}

body.light-mode .social-icon:hover {
    background-color: #1976D2;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(30, 136, 229, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .bio {
        text-align: center;
    }
    
    .skills-header {
        flex-direction: column;
        text-align: center;
    }
    
    .technical-title {
        text-align: center;
        font-size: 2.2rem;
        margin-bottom: 10px;
        color: var(--gold);
        font-family: var(--font-secondary);
    }
    
    .skills-heading {
        text-align: center;
        font-size: 3.8rem;
        color: var(--gold);
        font-family: var(--font-secondary);
        animation: titleGlow 3s infinite alternate;
        font-weight: 700;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-subtitle-label {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 10px;
        color: var(--gold);
        font-family: var(--font-secondary);
    }
    
    .section-title-styled {
        text-align: center;
        font-size: 3.8rem;
        margin-bottom: 15px;
        font-family: var(--font-secondary);
        color: var(--gold);
        position: relative;
        animation: titleGlow 3s infinite alternate;
        font-weight: 700;
    }
    
    .about-content, .contact-content.simplified {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(255, 255, 0, 0.98) !important;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    body.light-mode .nav-menu {
        background-color: rgba(0, 0, 255, 0.98) !important;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .theme-switch-wrapper {
        margin: 15px auto;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-title-styled {
        font-size: 2.2rem;
    }
    
    .skills-heading {
        font-size: 2.2rem;
    }
    
    .profile-pic {
        flex: 0 0 250px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 22px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
    
    .skills-heading {
        font-size: 2.5rem;
    }
    
    .section-title-styled {
        font-size: 2.5rem;
    }
    
    .technical-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .skills-grid, .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-content.simplified {
        width: 90%;
    }
    
    .email-container {
        padding: 15px 10px;
        flex-direction: column;
        width: 90%;
        max-width: none;
    }
    
    #email {
        margin-right: 0;
        margin-bottom: 12px;
        font-size: 0.9rem;
        overflow-wrap: anywhere;
        word-break: normal;
        width: 100%;
        padding: 0 10px;
    }
    
    .email-buttons {
        margin-top: 8px;
    }
    
    .project-card {
        min-height: 250px;
    }
}

/* Ensure light mode styles take precedence by placing them at the end of the file */
body.light-mode .btn-primary {
    background: linear-gradient(135deg, #1E88E5, #0D47A1) !important;
    color: white !important;
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.3) !important;
}

body.light-mode .hero-buttons {
    animation: buttonGlowLight 2s infinite alternate !important;
}

body.light-mode .skill-item i, body.light-mode .tool-item i {
    color: #1E88E5 !important;
}

body.light-mode .skill-item:hover i, body.light-mode .tool-item:hover i {
    color: #0D47A1 !important;
    text-shadow: 0 0 15px rgba(30, 136, 229, 0.5) !important;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 1s forwards;
}

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

.section-title-styled {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    z-index: 1;
}

.section-title-styled::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: var(--gold);
    transform: translateX(-50%);
    opacity: 0;
    animation: lineExpand 1.5s forwards 0.5s;
}

@keyframes lineExpand {
    to {
        opacity: 1;
        width: 100px;
    }
}

body.light-mode .section-title-styled::before {
    background: #1976D2;
}
