/* Variables */
:root {
    /* Modern Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    
    /* Text Colors */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-dark: #0f172a;
    
    /* Background Colors */
    --bg-color: #f8fafc;
    --bg-dark: #0f172a;
    --bg-light: #ffffff;
    --card-bg: #ffffff;
    
    /* Effects */
    --shadow-color: rgba(51, 65, 85, 0.1);
    --shadow-color-dark: rgba(15, 23, 42, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-success: linear-gradient(135deg, #10b981, #6366f1);
    --gradient-accent: linear-gradient(135deg, #ec4899, #f43f5e);
    
    /* Other Properties */
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-lg: 20px;
    
    /* Light theme default */
    --background: var(--bg-light);
    --foreground: var(--text-color);
    --card-background: var(--card-bg);
    --header-bg: var(--bg-light);
}

/* Dark Theme */
.dark-theme {
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-color: #0f172a;
    --bg-dark: #020617;
    --bg-light: #1e293b;
    --card-bg: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    --background: var(--bg-dark);
    --foreground: var(--text-color);
    --card-background: var(--card-bg);
    --header-bg: var(--bg-dark);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1.6rem;
    background-color: var(--background);
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 3.6rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: var(--gradient-primary);
    border-radius: 5px;
}

section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

/* Theme Switch */
.theme-switch-wrapper {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1100;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider .fa-sun {
    color: #fbbf24;
}

.slider .fa-moon {
    color: #4f46e5;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 1;
}

input:checked + .slider {
    background-color: #1e293b;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.4s ease;
}

header.sticky {
    padding: 1.5rem 0;
    background-color: rgba(var(--header-bg), 0.9);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(108, 99, 255, 0.2);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.2rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger .line {
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--background);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 24px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .hero-content {
    background: rgba(15, 23, 42, 0.3);
}

/* Hero Text Animation Container */
.animated-text {
    perspective: 1000px;
    transform-style: preserve-3d;
    overflow: hidden;
    width: 100%;
}

/* Main heading animation - typewriter effect with gradient */
.hero-title {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    color: transparent;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    overflow: visible;
    width: auto;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.08);
    animation: textFocus 0.5s ease-in forwards, 
               float 6s ease-in-out 1s infinite,
               glowText 4s ease-in-out 1s infinite alternate;
}

/* Text focus-in animation */
@keyframes textFocus {
    0% {
        filter: blur(12px);
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        filter: blur(0px);
        opacity: 1;
        transform: scale(1);
    }
}

/* Text glow animation */
@keyframes glowText {
    0% {
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.1);
    }
}

/* Subtitle animation - split letters fade in */
.hero-subtitle {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    opacity: 1;
    animation: slideInFromBottom 0.8s ease-out 0.5s both;
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: -5px;
    }
    80% {
        letter-spacing: 4px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 2px;
    }
}

/* Description animation - text revealing with highlight */
.hero-description {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    animation: fadeWordByWord 2s ease-out 1.3s forwards;
    opacity: 0;
}

@keyframes fadeWordByWord {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    30% {
        opacity: 1;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Float animation for heading */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--secondary-color), #f43f5e);
    top: 20%;
    left: 10%;
    animation: shape-move-1 15s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    bottom: 10%;
    right: 15%;
    animation: shape-move-2 20s infinite alternate;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--success-color), var(--primary-color));
    top: 40%;
    right: 30%;
    animation: shape-move-3 25s infinite alternate;
}

@keyframes shape-move-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 30px) scale(1.2);
    }
}

@keyframes shape-move-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-30px, -50px) scale(1.1);
    }
}

@keyframes shape-move-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(20px, -20px) scale(1.3);
    }
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    border-radius: 5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-5px) scale(1.03);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.btn-glow {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
    animation: glowing 1.5s infinite alternate;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    }
    100% {
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.8);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mouse {
    width: 3rem;
    height: 5rem;
    border: 2px solid var(--text-color);
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    margin-bottom: 1rem;
}

.wheel {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--text-color);
    border-radius: 50%;
    animation: wheel-animation 2s infinite;
}

@keyframes wheel-animation {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(2rem);
        opacity: 0;
    }
}

.scroll-arrow {
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    animation: arrow-animation 2s infinite;
}

@keyframes arrow-animation {
    0%, 100% {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        transform: rotate(45deg) translate(0, 0);
    }
}

/* About Section */
.about {
    background-color: var(--background);
    position: relative;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
}

.about-text {
    flex: 1;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.about-text.fade-in {
    transform: translateX(0);
    opacity: 1;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.7rem;
}

/* Profile Card with 3D Flip effect */
.profile-card {
    flex: 1;
    perspective: 1000px;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.profile-card.fade-in {
    transform: translateX(0);
    opacity: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 400px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.profile-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-front {
    background: var(--card-background);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.card-back {
    background: var(--gradient-secondary);
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.photo-container {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px var(--shadow-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.card-front h3 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-front p {
    color: var(--text-light);
    font-size: 1.6rem;
}

.card-back h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-details {
    width: 100%;
}

.card-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-details li:hover {
    transform: translateX(10px);
}

.card-details i {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.card-details span {
    font-size: 1.6rem;
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    background-color: var(--bg-light);
    position: relative;
}

/* Fix for dark mode skills section */
.dark-theme .skills-section {
    background-color: var(--bg-dark);
}

.skills-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.skills-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.skill-progress {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    stroke: rgba(238, 238, 238, 0.2);
    transition: all 0.5s ease;
}

.dark-theme .progress-ring-circle-bg {
    stroke: rgba(60, 60, 80, 0.4);
}

.progress-ring-circle {
    transition: stroke-dashoffset 2.5s ease;
    transform-origin: center;
    stroke-linecap: round;
    stroke: var(--primary-color);
    stroke-dasharray: 314;
    stroke-dashoffset: 314; /* Start at full offset (empty) */
}

/* Animation for the progress circle */
@keyframes rotateProgress {
    from {
        transform: rotate(-90deg);
    }
    to {
        transform: rotate(270deg);
    }
}

.skill-item.animate .progress-ring-circle {
    animation: fillProgress 2.5s ease forwards;
}

@keyframes fillProgress {
    from {
        stroke-dashoffset: 314;
    }
    to {
        stroke-dashoffset: var(--target-offset);
    }
}

/* Skill line rotation */
.progress-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-line {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: continuousRotation 3s linear infinite;
}

/* Removing the stopped class to ensure continuous rotation */

.rotating-line::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: 25px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

@keyframes continuousRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Glowing effect for the rotating line in dark mode */
.dark-theme .rotating-line::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}

/* Progress ring animation */
.progress-ring-circle {
    transition: stroke-dashoffset 2.5s ease;
    transform-origin: center;
    stroke-linecap: round;
    stroke: var(--primary-color);
    stroke-dasharray: 314;
    stroke-dashoffset: 314; /* Start at full offset (empty) */
}

/* Make skill items flash subtly to draw attention */
@keyframes pulseSkill {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
}

.dark-theme .skill-item {
    animation: pulseSkill 3s infinite alternate;
    background-color: rgba(51, 65, 85, 0.3);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .skill-item.animate {
    animation: none;
}

.dark-theme .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Highlight the percentage with a gradient glow */
.skill-percent {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark-theme .skill-percent {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.skill-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 3rem;
    color: var(--accent-color);
}

.dark-theme .skill-icon {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.skill-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--background);
    position: relative;
}

.contact-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.contact-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-info p {
    margin-bottom: 4rem;
    font-size: 1.8rem;
    color: var(--text-light);
}

/* Glassmorphism Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 4rem;
}

.dark-theme .contact-form {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    border: 2px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.6rem;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    border-color: var(--accent-color);
    background-color: rgba(15, 23, 42, 0.3);
}

.form-group textarea {
    min-height: 15rem;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 2rem;
    top: -2.5rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1.6rem;
    opacity: 1;
}

/* No need to move the label on focus since it's already positioned above */
.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    color: var(--primary-color);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.contact-alternatives {
    margin-top: 3rem;
}

.email-link {
    display: inline-block;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-link:hover {
    transform: translateY(-3px);
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 2.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.social-icon:hover::before {
    transform: scale(1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 1.4rem;
}

footer .social-links {
    gap: 1.5rem;
}

footer .social-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.8rem;
    box-shadow: none;
}

footer .social-icon:hover {
    background-color: white;
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: translateY(10px) scale(0.9);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Show scroll top button when scrolled down */
body.scrolled .scroll-top {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    html {
        font-size: 60%;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.6rem;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 2.4rem;
    }
    
    .hero-description {
        font-size: 1.7rem;
    }
    
    .about-content, 
    .footer-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    .profile-card, 
    .about-text {
        width: 100%;
    }
    
    .skills {
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .burger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 7rem;
        left: 0;
        height: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        overflow: hidden;
        transition: height 0.4s ease;
        box-shadow: 0 5px 10px var(--shadow-color);
    }
    
    .nav-links.active {
        height: 30rem;
    }
    
    .nav-links li {
        margin: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .hero-title {
        font-size: 4.2rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .about-content, 
    .contact-content {
        text-align: center;
    }
    
    .card-inner {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 3rem 2rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .hero-shapes {
        opacity: 0.5;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .skills {
        gap: 2rem;
    }
    
    .skill-item {
        transform: scale(0.9);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s 0.1s forwards;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.success-message {
    text-align: center;
}

.success-message i {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 2rem;
    display: inline-block;
    animation: scaleIn 0.5s 0.3s forwards, pulse 2s 1s infinite;
    transform: scale(0);
    opacity: 0;
}

.success-message h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0;
    animation: fadeIn 0.5s 0.5s forwards;
}

.success-message p {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.5s 0.7s forwards;
}

.modal-close-btn {
    opacity: 0;
    animation: fadeIn 0.5s 0.9s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Submit button styling */
.submit-button-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.6);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1.5rem 3.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-transform: uppercase;
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(99, 102, 241, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 35px rgba(99, 102, 241, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(99, 102, 241, 0.6);
    }
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.8);
    background: var(--gradient-secondary);
    animation-play-state: paused;
}

.submit-btn:active {
    transform: translateY(-2px);
}

.dark-theme .submit-btn {
    background: var(--gradient-secondary);
    box-shadow: 0 5px 25px rgba(236, 72, 153, 0.6);
}

.dark-theme .submit-btn:hover {
    background: var(--gradient-primary);
}

/* Standalone Submit Button */
.standalone-button-container {
    text-align: center;
    margin: 3rem auto;
}

.standalone-btn {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 65, 108, 0.5);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    animation: button-attention 2s infinite;
}

@keyframes button-attention {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.standalone-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 65, 108, 0.7);
}

.standalone-btn:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.6);
}

.standalone-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

.dark-theme .standalone-btn {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.dark-theme .standalone-btn:hover {
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.7);
} 
