/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: url(icons8-arrow-27.png), auto;
}

*::selection {
    background-color: rgba(44, 62, 80, 0.9);;
    color: #d19a52;
}

/* :root {
    --primary: #FF6F61; 
    --secondary: #6B5B95;
    --accent: #88B04B; 
    --dark: #2C3E50; 
    --light: #ECF0F1; 
    --text: #34495E; 
    --text-light: #FFFFFF; 
    --border: #BDC3C7;
    --shadow: rgba(44, 62, 80, 0.15); 
    --shadow-dark: rgba(44, 62, 80, 0.4);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hover: linear-gradient(135deg, var(--secondary), var(--accent));
} */
:root {
    --primary: #8b4513;
    --secondary: #d19a52;
    --accent: #ff6b35;
    --dark: #2b2b2b;
    --light: #f5f5f5;
    --text: #333;
    --text-light: #f5f5f5;
    --border: #d2b48c;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hover: linear-gradient(135deg, var(--secondary), var(--accent));
}


/* 
[data-theme="dark"] {
    --primary: #FF8C42; 
    --secondary: #9B59B6; 
    --accent: #A3D16B; 
    --dark: #1A1A1A; 
    --light: #252525; 
    --text: #F0F0F0; 
    --text-light: #FFFFFF; 
    --border: #4A4A4A;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.6);
} */


[data-theme="dark"] {
    --primary: #ff8c42;
    --secondary: #d19a52;
    --accent: #ff6b35;
    --dark: #121212;
    --light: #1e1e1e;
    --text: #e0e0e0;
    --text-light: #ffffff;
    --border: #636363;
    --shadow: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] h1 {
    color: var(--text-light);
}

[data-theme="dark"] .skill-tag {
    color: var(--dark);
    /* Ensure contrast for skill tags in dark mode */
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Modern, clean font */
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Particle Background - Enhanced Glow */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.7;
    animation: particleGlow 7s ease-in-out infinite;
    box-shadow: 
        0 0 8px var(--primary),
        0 0 12px var(--primary);
}

/* Random positions and delays for particles */
.particle:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 60%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    top: 90%;
    left: 5%;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    top: 20%;
    left: 50%;
    animation-delay: 10s;
}

.particle:nth-child(7) {
    top: 40%;
    left: 5%;
    animation-delay: 1s;
}

.particle:nth-child(8) {
    top: 60%;
    left: 90%;
    animation-delay: 3s;
}

.particle:nth-child(9) {
    top: 80%;
    left: 25%;
    animation-delay: 5s;
}

.particle:nth-child(10) {
    top: 5%;
    left: 70%;
    animation-delay: 7s;
}

@keyframes particleGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
        box-shadow: 
            0 0 8px var(--primary),
            0 0 12px var(--primary);
    }
    25% {
        transform: translate(15px, -15px) scale(1.05);
        opacity: 0.9;
        box-shadow: 
            0 0 10px var(--primary),
            0 0 15px var(--primary);
    }
    50% {
        transform: translate(30px, -30px) scale(1);
        opacity: 0.8;
        box-shadow: 
            0 0 12px var(--primary),
            0 0 18px var(--primary);
    }
    75% {
        transform: translate(15px, -15px) scale(1.05);
        opacity: 0.9;
        box-shadow: 
            0 0 10px var(--primary),
            0 0 15px var(--primary);
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
        box-shadow: 
            0 0 8px var(--primary),
            0 0 12px var(--primary);
    }
}


/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    /* Use percentage for padding */
    background: rgba(44, 62, 80, 0.9);
    /* Dark Slate Blue, slightly opaque */
    backdrop-filter: blur(12px);
    /* Stronger blur */
    color: var(--text-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--border);
    transition: var(--transition);
    max-height: 80px;
}

.navbar.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 6px 25px var(--shadow-dark);
    /* Enhanced shadow */
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    /* Keep Bebas Neue for logo */
    font-size: 2.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    margin-top: 4px;
}

.logo:hover {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.logo a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.logo strong {
    color: var(--text-light);
    transition: var(--transition);
}

.logo:hover a,
.logo:hover strong {
    color: #FFD700;
    /* Gold color on hover */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    /* Gold glow */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Increased gap */
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text-light);
    padding: 0.6rem;
    /* Slightly larger padding */
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.3rem;
    /* Larger icon */
    width: 50px;
    /* Larger button */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: rotate(360deg) scale(1.1);
    /* Full rotation and slight scale */
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    /* Increased gap for links */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    /* Bolder font */
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.8rem 1.2rem;
    /* More padding */
    position: relative;
    border-radius: 12px;
    /* More rounded corners */
    overflow: hidden;
}

.nav-links a:last-child {
    margin-right: -50px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
    transform: skewX(-20deg);
    /* Skew effect */
    transform-origin: bottom left;
}

.nav-links a:hover::before {
    left: 0;
    transform: skewX(0deg);
    /* Straighten on hover */
}

.nav-links a:hover {
    color: white;
    transform: translateY(-3px);
    /* More pronounced lift */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 7px;
    /* Increased gap */
    z-index: 1001;
    padding: 0.5rem;
}

.hamburger div {
    width: 35px;
    /* Wider bars */
    height: 4px;
    /* Thicker bars */
    background-color: var(--text-light);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active div:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    /* Adjusted transform */
    background-color: var(--secondary);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    /* Adjusted transform */
    background-color: var(--secondary);
}

/* Section Styles */
section {
    padding: 100px 5%;
    /* More vertical padding */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

section:nth-child(odd) {
    background-color: var(--light);
}

section:nth-child(even) {
    background: linear-gradient(135deg, var(--light) 0%, rgba(179, 125, 56, 0.1) 100%);
    /* Adjusted based on new primary */
}

h1 {
    font-family: 'Playfair Display', serif;
    /* Keep Playfair Display */
    font-size: 3.2rem;
    /* Slightly larger */
    color: var(--dark);
    margin-bottom: 35px;
    /* More margin */
    position: relative;
    display: inline-block;
    overflow: hidden;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    /* Lower position */
    height: 4px;
    /* Thicker line */
    width: 0;
    background: var(--gradient);
    transition: var(--transition-slow);
    transform: translateX(-50%);
}

h1.animate::after {
    width: 100px;
    /* Longer line */
}

p {
    font-family: 'Roboto', sans-serif;
    /* Use Roboto for body text */
    font-size: 1.2rem;
    /* Slightly larger */
    color: var(--text);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 25px;
    /* More margin */
}

/* Home Section - Centered with more dynamic background */
#home {
    background: linear-gradient(rgba(236, 240, 241, 0.85), rgba(236, 240, 241, 0.85)),
        url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

[data-theme="dark"] #home {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.intro-text {
    max-width: 900px;
    animation: fadeInScale 1s ease-out;
    /* New animation */
    z-index: 2;
    position: relative;
    margin: 0 auto;
    margin-top: 70px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.intro-text h1 {
    font-size: 4rem;
    /* Larger font size */
    margin: 0 0 25px 0;
    font-family: 'Poppins', sans-serif;
    /* Poppins for headings */
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.intro-text p {
    font-size: 1.6rem;
    /* Larger paragraph text */
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    line-height: 1.5;
}

#high-light {
    font-family: cinzel;
    font-weight: bold;
    font-style: italic;
    background: linear-gradient(to right, var(--accent), var(--primary));
    /* Updated highlight gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] #high-light {
    background: linear-gradient(to right, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Shining CTA Button */
.cta-btn {
    display: inline-flex;
    /* Use flex for icon alignment */
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    /* More generous padding */
    background: rgba(255, 255, 255, 0.2);
    /* More transparent glass */
    backdrop-filter: blur(20px);
    /* Stronger blur */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Stronger border */
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    /* Bolder text */
    transition: var(--transition);
    border-radius: 30px;
    /* More rounded */
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow */
    text-transform: uppercase;
    /* Uppercase text */
    letter-spacing: 1px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    /* Start further left */
    width: 50%;
    /* Smaller shine width */
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    /* Brighter shine */
    transition: none;
    /* No transition for this, will use animation */
    z-index: -1;
    transform: skewX(-30deg);
    /* More pronounced skew */
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -2;
    border-radius: 30px;
}

.cta-btn:hover::before {
    animation: shine 0.7s forwards;
    /* Faster shine on hover */
}

.cta-btn:hover::after {
    opacity: 0.9;
    /* More opaque background on hover */
}

.cta-btn:hover {
    transform: translateY(-7px) scale(1.02);
    /* More lift and slight scale */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-light);
    /* Text color changes on hover */
}

@keyframes shine {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Floating Elements (Home Section) - More dynamic */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    perspective: 1000px;
    /* For 3D transformations */
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    /* Slightly more visible */
    font-size: 3rem;
    /* Larger icons */
    animation: floatRotate 15s ease-in-out infinite alternate;
    /* Slower, more complex animation */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
    /* Drop shadow for icons */
}

.floating-element:nth-child(1) {
    top: 25%;
    left: 10%;
    color: var(--primary);
    animation-delay: 0s;
    transform: translateZ(50px);
}

.floating-element:nth-child(2) {
    top: 65%;
    right: 15%;
    color: var(--secondary);
    animation-delay: 3s;
    transform: translateZ(-20px);
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    color: var(--accent);
    animation-delay: 6s;
    transform: translateZ(30px);
}

.floating-element:nth-child(4) {
    /* Added fourth element for more dynamism */
    top: 15%;
    right: 5%;
    color: var(--primary);
    animation-delay: 9s;
    transform: translateZ(10px);
}

.floating-element:nth-child(5) {
    /* Added fifth element */
    bottom: 10%;
    left: 50%;
    color: var(--secondary);
    animation-delay: 12s;
    transform: translateZ(-40px);
}

@keyframes floatRotate {
    0% {
        transform: translateY(0px) rotate(0deg) translateX(0px);
    }

    25% {
        transform: translateY(-30px) rotate(90deg) translateX(20px);
    }

    50% {
        transform: translateY(-15px) rotate(180deg) translateX(-10px);
    }

    75% {
        transform: translateY(-40px) rotate(270deg) translateX(-30px);
    }

    100% {
        transform: translateY(0px) rotate(360deg) translateX(0px);
    }
}


/* Education Section - Simple Cards */
.edu-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.edu-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-left: 5px solid var(--primary);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.edu-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-dark);
    border-left-color: var(--accent);
}

.edu-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.edu-box p {
    color: var(--text);
    opacity: 0.8;
    font-size: 1rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .edu-box {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--primary);
}

[data-theme="dark"] .edu-box h3 {
    color: var(--text-light);
}

[data-theme="dark"] .edu-box p {
    color: var(--text-light);
    opacity: 0.9;
}

/* What I Do Section */
.what-i-do-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 3px solid var(--border);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 25px var(--shadow);
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-card h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

/* Dark mode adjustments for What I Do section */
[data-theme="dark"] .service-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .service-card h1 {
    color: var(--text-light);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Increased gap */
    max-width: 1000px;
    /* Wider container */
    justify-content: center;
}

.skill-tag {
    padding: 14px 28px;
    /* More padding */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    /* Softer border */
    border-radius: 30px;
    /* More rounded */
    transition: var(--transition);
    cursor: default;
    font-weight: 600;
    /* Bolder font */
    display: flex;
    align-items: center;
    gap: 10px;
    /* Increased icon gap */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    /* Subtle shadow */
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

.skill-tag:hover::before {
    left: 0;
}

.skill-tag i,
.skill-tag img {
    /* Apply to img too for consistency */
    color: var(--primary);
    font-size: 1.2rem;
    /* Larger icons */
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-10px) scale(1.05);
    /* More pronounced lift and scale */
    box-shadow: 0 15px 30px var(--shadow-dark);
    /* Stronger shadow */
    color: white;
    /* Text color on hover */
    border-color: transparent;
    /* No border on hover */
}

.skill-tag:hover i,
.skill-tag:hover img {
    color: white;
    transform: rotate(360deg);
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    /* Larger min width for cards */
    gap: 35px;
    /* Increased gap */
    width: 100%;
    max-width: 1200px;
}

.project-card {
    background: rgba(255, 255, 255, 0.98);
    /* Almost opaque */
    backdrop-filter: blur(18px);
    /* Stronger blur */
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    /* Enhanced shadow */
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    /* More rounded */
    position: relative;
    border: 1px solid var(--border);
    /* Add a border */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    border-radius: 25px;
}

.project-card:hover::before {
    opacity: 0.15;
    /* More visible gradient overlay */
}

.project-card:hover {
    transform: translateY(-18px) rotateX(3deg);
    /* More lift and rotation */
    box-shadow: 0 30px 60px var(--shadow-dark);
    /* Much stronger shadow */
    border-color: var(--primary);
    /* Highlight border */
}

.project-img {
    width: 100%;
    height: 250px;
    /* Taller image area */
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img img {
    transform: scale(1.2) rotate(3deg);
    /* More zoom and rotation */
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary), transparent 70%);
    /* Stronger gradient overlay */
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-img::after {
    opacity: 0.4;
    /* More visible overlay */
}

.project-content {
    padding: 30px;
    /* More padding */
    flex-grow: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    /* Larger title */
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
    /* Bolder */
    font-family: 'Lora', serif;
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Increased gap */
    margin-bottom: 20px;
}

.tech-tag {
    font-size: 0.85rem;
    /* Slightly larger */
    padding: 6px 14px;
    /* More padding */
    background: var(--gradient);
    color: white;
    border-radius: 6px;
    /* Slightly more rounded */
    transition: var(--transition);
    font-weight: 500;
}

.project-card:hover .tech-tag {
    transform: translateY(-2px) scale(1.05);
    /* Lift and scale */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-desc {
    font-size: 1rem;
    /* Clearer text */
    color: #555;
    /* Slightly darker for readability */
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    /* More padding */
    background: var(--gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    border-radius: 30px;
    /* More rounded */
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-dark);
    /* Initial shadow */
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: var(--transition);
    z-index: -1;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    transform: translateY(-5px);
    /* More lift */
    box-shadow: 0 12px 25px var(--shadow-dark);
    /* Stronger shadow */
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* More gap */
    max-width: 900px;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 25px;
    /* Increased gap */
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    /* Larger buttons */
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    color: var(--dark);
    font-size: 1.8rem;
    /* Larger icons */
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 20px var(--shadow);
    border: 1px solid var(--border);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scale(0);
    transition: var(--transition);
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-12px) rotate(360deg) scale(1.05);
    /* More lift, rotation and scale */
    color: white;
    box-shadow: 0 20px 40px var(--shadow-dark);
    border-color: transparent;
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 50px 5%;
    /* More padding */
    text-align: center;
    border-top: 3px solid var(--border);
    /* Thicker border */
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* More gap */
}

.footer-logo {
    font-weight: bold;
    font-style: italic;
    font-family: 'Dancing Script', cursive;
    /* Keep Dancing Script */
    font-size: 2.8rem;
    /* Larger font */
    color: var(--secondary);
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.1);
    /* More pronounced scale */
    text-shadow: 0 0 25px var(--secondary);
}

.footer-logo strong {
    color: var(--text-light);
    font-weight: lighter;
}

.footer-links {
    display: flex;
    gap: 30px;
    /* Increased gap */
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 10px 20px;
    /* More padding */
    border-radius: 12px;
    position: relative;
    font-weight: 500;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: 12px;
    z-index: -1;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-3px);
    /* More lift */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copyright {
    margin-top: 25px;
    font-size: 1rem;
    /* Slightly larger */
    color: #BBB;
    /* Lighter color */
    opacity: 0.9;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    /* Higher position */
    right: 40px;
    /* Further right */
    width: 65px;
    /* Larger button */
    height: 65px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    /* Larger icon */
    box-shadow: 0 8px 20px var(--shadow-dark);
    /* Stronger shadow */
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all ease-in-out 0.5s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.15);
    /* More lift and scale */
    box-shadow: 0 15px 30px var(--shadow-dark);
    animation: rotate 0.6s ease-in-out 1;
    /* Slower rotation */
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    /* Thicker bar */
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 111, 97, 0.5);
    /* Glow effect */
}

/* Fast AOS-style Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        /* More pronounced movement */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-70px);
        /* More pronounced movement */
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(70px);
        /* More pronounced movement */
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Slower transition */
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-left.active {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    section {
        padding: 90px 5%;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 70px 5%;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        /* Adjust for smaller screens */
        gap: 25px;
    }

    .intro-text h1 {
        font-size: 3.5rem;
    }

    h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        /* Wider mobile menu */
        height: 100vh;
        background: rgba(44, 62, 80, 0.95);
        /* Darker, more opaque */
        backdrop-filter: blur(15px);
        /* Stronger blur */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        padding: 3rem;
        /* More padding */
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -8px 0 35px var(--shadow-dark);
        /* Stronger shadow */
    }

    .hamburger {
        display: flex;
    }

    .nav-controls {
        order: -1;
    }

    section {
        padding: 70px 5%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .intro-text h1 {
        font-size: 3rem;
        line-height: 1.1;
        /* Tighter line height */
    }

    .intro-text p {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-links {
        gap: 20px;
    }

    .social-link {
        width: 65px;
        /* Slightly smaller */
        height: 65px;
        font-size: 1.6rem;
    }

    .skills-container {
        gap: 15px;
    }

    .skill-tag {
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.2rem;
        margin-right: 15px;
        margin-top: 0px;
    }

    section {
        padding: 60px 4%;
        /* More padding adjustment */
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .intro-text h1 {
        margin-bottom: 15px;
        font-size: 2.5rem;
        text-align: left;
        /* Center align for small screens */
        line-height: 1.2;
    }

    .intro-text p {
        font-size: 1.1rem;
        text-align: left;
        /* Center align for small screens */
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 0.95rem;
    }

    .edu-box {
        padding: 25px;
        border-left-width: 4px;
    }

    .edu-box h3 {
        font-size: 1.3rem;
    }

    .edu-box p {
        font-size: 1rem;
    }

    .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .back-to-top {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 30px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-card {
        margin: 0;
        border-radius: 20px;
    }

    .project-img {
        height: 200px;
        /* Shorter image area */
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-desc {
        font-size: 0.9rem;
    }

    .project-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Education Section Responsive */
    .edu-box {
        padding: 25px 20px;
    }

    .edu-box h3 {
        font-size: 1.2rem;
    }

    /* What I Do Section Responsive */
    .what-i-do-container {
        gap: 15px;
        padding: 0 10px;
    }

    .service-card {
        padding: 30px 20px;
    }



    .service-card h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 360px) {
    .nav-links {
        font-size: 0.9rem;
        width: 95%;
        gap: 2rem;
    }

    .cta-btn {
        padding: 12px 26px;
        font-size: 0.85rem;
    }

    .intro-text p {
        font-size: 0.95rem;
    }

    .skill-tag {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    section {
        padding: 50px 3%;
    }

    h1 {
        font-size: 2rem;
    }

    .intro-text h1 {
        font-size: 2.2rem;
    }

    .footer-logo {
        font-size: 2.5rem;
    }

    .footer-links {
        font-size: 0.9rem;
        gap: 20px;
    }

    .cinzel-h1 h1 {
        font-size: 40px;
    }

    /* Education Section Responsive for Small Screens */
    .edu-box {
        padding: 20px 15px;
    }

    .edu-box h3 {
        font-size: 1.1rem;
    }

    .edu-box p {
        font-size: 0.9rem;
    }

    /* What I Do Section Responsive for Small Screens */
    .what-i-do-container {
        gap: 12px;
        padding: 0 5px;
    }

    .service-card {
        padding: 25px 15px;
    }



    .service-card h1 {
        font-size: 2rem;
    }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 25px;
    /* Larger cursor */
    height: 25px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    /* Smoother transition */
    opacity: 0;
    box-shadow: 0 0 10px var(--primary);
    /* Glow effect */
}

.cursor.active {
    opacity: 0.8;
    /* More visible */
}

.cursor.hover {
    transform: scale(2);
    /* Larger scale on hover */
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    /* Glow effect on hover */
}

@media (max-width: 768px) {
    .cursor {
        display: none;
    }
}

@media (min-width: 1440px) {
    .intro-text h1 {
        font-size: 4.5rem;
    }

    section {
        padding: 120px 10%;
    }

    h1 {
        font-size: 3.5rem;
    }

    .project-card {
        max-width: 450px;
        /* Max width for larger screens */
    }

    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}