:root {
    --primary-color: #7400B8;
    --text-color-primary: #ffffff;
    --secondary-color: #5E60CE;
    --accent-color: #4EA8DE;
    --light-color: #f8f9fa;
    --dark-color: #14213d;
    --danger-color: #FF5F5D;
    --success-color: #06d6a0;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
    --gradient-primary: linear-gradient(135deg, #7400B8, #5E60CE, #4EA8DE);
    --background-light: #f8f9fa;
    --text-light: #14213d;
    --background-dark: #0f172a;
    --text-dark: #f8f9fa;
    --card-light: #ffffff;
    --card-dark: #1e293b;
}

.dark-theme {
    --background-color: var(--background-dark);
    --text-color: var(--text-dark);
    --card-color: var(--card-dark);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --border-color: #2d3748;
}

.light-theme {
    --background-color: var(--background-light);
    --text-color: var(--text-light);
    --card-color: var(--card-light);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color, var(--background-light));
    color: var(--text-color, var(--text-light));
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader .loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preloader .text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    color: white;
    margin-bottom: 1rem;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 3px;
}

.loading-bar .progress {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

.preloader-finish {
    opacity: 0;
    visibility: hidden;
}

/* Particles and Canvas */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* Links & Buttons */
a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover:before {
    width: 100%;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(116, 0, 184, 0.3);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.primary-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 0, 184, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 0, 184, 0.3);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.dark-theme header {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1440px;
    margin: 0 auto;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    font-family: var(--font-secondary);
    position: relative;
}

.logo span {
    color: var(--primary-color);
}

.logo:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 70%;
    height: 3px;
    background-color: var(--accent-color);
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-link:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover:before, .nav-link.active:before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Main content sections */
section {
    padding: 5rem 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    position: relative;
}

.section-divider:before {
    content: "";
    position: absolute;
    width: 100px;
    height: 1px;
    background-color: var(--primary-color);
    top: 50%;
    left: -110px;
    transform: translateY(-50%);
}

.section-divider:after {
    content: "";
    position: absolute;
    width: 100px;
    height: 1px;
    background-color: var(--primary-color);
    top: 50%;
    right: -110px;
    transform: translateY(-50%);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(116, 0, 184, 0.05) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1240px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

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

.hero-intro {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-color);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.typing-container {
    height: 3rem;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 600;
    display: inline-block;
}

.typing {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.typing::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 2px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.3s;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-sphere {
    position: absolute;
    width: 350px;
    height: 350px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.code-container {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.8s, float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px); }
    100% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0px); }
}

.dark-theme .code-container {
    background: rgba(15, 23, 42, 0.9);
}

.code-container:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.code-container:before {
    content: '• • •';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    letter-spacing: 2px;
}

.code-container pre {
    margin-top: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    white-space: pre-wrap;
}

.code-container pre code {
    color: #f8f8f2;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scroll-indicator i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(2px, 9999px, 60px, 0);
    }
    5% {
        clip: rect(18px, 9999px, 92px, 0);
    }
    10% {
        clip: rect(44px, 9999px, 98px, 0);
    }
    15% {
        clip: rect(100px, 9999px, 59px, 0);
    }
    20% {
        clip: rect(24px, 9999px, 34px, 0);
    }
    25% {
        clip: rect(97px, 9999px, 8px, 0);
    }
    30% {
        clip: rect(99px, 9999px, 13px, 0);
    }
    35% {
        clip: rect(8px, 9999px, 72px, 0);
    }
    40% {
        clip: rect(84px, 9999px, 2px, 0);
    }
    45% {
        clip: rect(22px, 9999px, 60px, 0);
    }
    50% {
        clip: rect(61px, 9999px, 47px, 0);
    }
    55% {
        clip: rect(2px, 9999px, 4px, 0);
    }
    60% {
        clip: rect(44px, 9999px, 15px, 0);
    }
    65% {
        clip: rect(83px, 9999px, 86px, 0);
    }
    70% {
        clip: rect(73px, 9999px, 63px, 0);
    }
    75% {
        clip: rect(85px, 9999px, 59px, 0);
    }
    80% {
        clip: rect(93px, 9999px, 68px, 0);
    }
    85% {
        clip: rect(3px, 9999px, 16px, 0);
    }
    90% {
        clip: rect(39px, 9999px, 3px, 0);
    }
    95% {
        clip: rect(68px, 9999px, 42px, 0);
    }
    100% {
        clip: rect(99px, 9999px, 96px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 32px, 0);
    }
    5% {
        clip: rect(40px, 9999px, 86px, 0);
    }
    10% {
        clip: rect(100px, 9999px, 67px, 0);
    }
    15% {
        clip: rect(2px, 9999px, 11px, 0);
    }
    20% {
        clip: rect(60px, 9999px, 62px, 0);
    }
    25% {
        clip: rect(88px, 9999px, 75px, 0);
    }
    30% {
        clip: rect(56px, 9999px, 9px, 0);
    }
    35% {
        clip: rect(32px, 9999px, 100px, 0);
    }
    40% {
        clip: rect(31px, 9999px, 99px, 0);
    }
    45% {
        clip: rect(69px, 9999px, 69px, 0);
    }
    50% {
        clip: rect(59px, 9999px, 28px, 0);
    }
    55% {
        clip: rect(25px, 9999px, 99px, 0);
    }
    60% {
        clip: rect(87px, 9999px, 39px, 0);
    }
    65% {
        clip: rect(44px, 9999px, 81px, 0);
    }
    70% {
        clip: rect(75px, 9999px, 69px, 0);
    }
    75% {
        clip: rect(36px, 9999px, 33px, 0);
    }
    80% {
        clip: rect(87px, 9999px, 88px, 0);
    }
    85% {
        clip: rect(38px, 9999px, 82px, 0);
    }
    90% {
        clip: rect(93px, 9999px, 64px, 0);
    }
    95% {
        clip: rect(68px, 9999px, 42px, 0);
    }
    100% {
        clip: rect(66px, 9999px, 22px, 0);
    }
}

/* About Section */
.about-section {
    background-color: var(--light-color);
    position: relative;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    background-color: rgba(116, 0, 184, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.tech-orbit {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(116, 0, 184, 0.2);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tech-icon.java {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #f89820;
}

.tech-icon.spring {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.tech-icon.spring img {
    width: 35px;
    height: 35px;
}

.tech-icon.php {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #787CB5;
}

.tech-icon.laravel {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #FF2D20;
}

.tech-icon.golang {
    top: 20%;
    left: 15%;
}

.tech-icon.golang img {
    width: 35px;
    height: 35px;
}

.tech-icon.vue {
    top: 20%;
    right: 15%;
    color: #41B883;
}

.tech-icon.docker {
    bottom: 20%;
    right: 15%;
    color: #2496ED;
}

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

/* Skills Section */
.skills-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.skills-section:before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(116, 0, 184, 0.05) 0%, rgba(116, 0, 184, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.skill-category h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.skill-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.skill-icon img {
    width: 2.5rem;
    height: 2.5rem;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 5px;
    animation: progress 1.5s ease-in-out;
}

@keyframes progress {
    from {
        width: 0;
    }
}

/* Projects Section */
.projects-section {
    background-color: white;
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 1px solid rgba(116, 0, 184, 0.2);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.project-card.in-progress .project-badge {
    background-color: var(--accent-color);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #555;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.tech-tag {
    background-color: rgba(116, 0, 184, 0.1);
    color: var(--text-color-primary);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-status {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.project-status i {
    color: var(--primary-color);
}

.project-card.featured {
    grid-column: span 2;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
    position: relative;
}

.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-link:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(116, 0, 184, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 10% 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-secondary);
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    section {
        padding: 5rem 5%;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .project-card.featured {
        grid-column: auto;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        gap: 3rem;
    }
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    .code-container {
        transform: rotate(0);
    }
    .about-container {
        flex-direction: column;
    }
    .about-content {
        text-align: center;
    }
    .about-details {
        align-items: center;
    }
    .contact-container {
        flex-direction: column;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .theme-toggle {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .about-visual {
        height: 300px;
    }
    .tech-orbit {
        width: 250px;
        height: 250px;
    }
    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .section-divider:before, .section-divider:after {
        width: 50px;
    }
    .section-divider:before {
        left: -60px;
    }
    .section-divider:after {
        right: -60px;
    }
    .project-filters {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

.dark-theme {
    --background-color: var(--background-dark);
    --text-color: var(--text-dark);
    --card-color: var(--card-dark);
}

.dark-theme a {
    color: var(--text-dark);
}

.dark-theme .nav-link:before {
    background-color: var(--accent-color);
}

.dark-theme .project-card {
    background-color: var(--card-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .skill-card {
    background-color: var(--card-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .skill-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-theme footer {
    background-color: var(--card-dark);
}

.dark-theme .filter-btn {
    background-color: var(--card-dark);
    color: var(--text-dark);
}

.dark-theme .filter-btn.active {
    background-color: var(--primary-color);
}

.dark-theme .contact-form input,
.dark-theme .contact-form textarea {
    background-color: var(--card-dark);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.dark-theme .contact-form input:focus,
.dark-theme .contact-form textarea:focus {
    border-color: var(--primary-color);
}

/* Project Cards with Tilt Effect */
.project-card {
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-image img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.tech-tag {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* Enhanced Animations for Mobile Compatibility */
@media (prefers-reduced-motion: reduce) {
    .project-card:hover {
        transform: none;
    }
    
    .project-card:hover .project-image img {
        transform: none;
    }
    
    .primary-btn, .tech-tag {
        animation: none !important;
    }
    
    .code-container {
        animation: fadeIn 1s ease forwards 1.8s;
        transform: none !important;
    }
    
    .code-container:hover {
        transform: none !important;
    }
}

/* Dark Theme Enhancements */
body.dark-theme {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

body.light-theme {
    background-color: var(--background-light);
    color: var(--text-light);
}

/* Theme Toggle Button Styling */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(45deg);
}

.dark-theme .cursor {
    background-color: var(--accent-color);
}

.dark-theme .cursor-follower {
    border-color: var(--accent-color);
}

.dark-theme header {
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.dark-theme .nav-link {
    color: var(--text-dark);
}

.dark-theme .logo {
    color: var(--text-dark);
}

.dark-theme .hamburger span {
    background-color: var(--text-dark);
}

.dark-theme .hero-content h1,
.dark-theme .hero-content h2,
.dark-theme .hero-content p {
    color: var(--text-dark);
}

.dark-theme .section-header h2 {
    color: var(--text-dark);
}

.dark-theme .project-card {
    background-color: var(--card-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .project-content h3,
.dark-theme .project-content p {
    color: var(--text-dark);
}

.dark-theme .skill-card {
    background-color: var(--card-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
}

.dark-theme .skill-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .filter-btn {
    background-color: var(--card-dark);
    color: var(--text-dark);
}

.dark-theme .filter-btn:hover,
.dark-theme .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.dark-theme .contact-form input,
.dark-theme .contact-form textarea {
    background-color: var(--card-dark);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.dark-theme footer {
    background-color: var(--card-dark);
    color: var(--text-dark);
}

.dark-theme .footer-links a,
.dark-theme .social-links a {
    color: var(--text-dark);
}

.dark-theme .form-group label {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile styling for the theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        margin-left: auto;
        margin-right: 20px;
    }
}

/* Fix dark mode readability for main sections */
.dark-theme .about-section,
.dark-theme .skills-section,
.dark-theme .contact-section {
    background-color: var(--background-dark);
}

/* Fix form inputs in dark mode */
.dark-theme .contact-form {
    background-color: var(--card-dark);
}

.dark-theme .contact-link {
    background-color: var(--card-dark);
    color: var(--text-dark);
}

/* Fix the form input text color and placeholder */
.dark-theme input, 
.dark-theme textarea {
    color: var(--text-dark);
    background-color: var(--card-dark);
    border-color: var(--border-color);
}

.dark-theme input::placeholder, 
.dark-theme textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Increase contrast for labels and text in dark mode */
.dark-theme .form-group label,
.dark-theme .contact-section h2,
.dark-theme .contact-section h3,
.dark-theme .contact-section p {
    color: var(--text-dark);
}

/* Fix contrast for the tech sphere section */
.dark-theme .tech-icon {
    background-color: var(--card-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Fix for "Me" section */
.dark-theme .orbit-circle {
    border-color: rgba(116, 0, 184, 0.5);
}

/* Fix Projects section in dark mode */
.dark-theme .projects-section {
    background-color: var(--background-dark);
}

.dark-theme .project-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-color);
}

/* Fix project text in dark mode */
.dark-theme .project-content h3 {
    color: var(--text-dark);
}

.dark-theme .project-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Fix project tech tags in dark mode */
.dark-theme .tech-tag {
    background: rgba(116, 0, 184, 0.3);
    color: var(--text-dark);
}

/* Fix GitHub link colors */
.dark-theme .project-link {
    color: var(--accent-color);
}

.dark-theme .project-status {
    color: rgba(255, 255, 255, 0.6);
}

/* Fix filter buttons in dark mode */
.dark-theme .filter-btn {
    border-color: rgba(116, 0, 184, 0.4);
    background-color: rgba(30, 41, 59, 0.6);
}

/* Fix section headers in dark mode */
.dark-theme .section-header h2 {
    color: var(--text-dark);
}

/* Fix feature badge in dark mode */
.dark-theme .project-badge {
    background-color: var(--primary-color);
    color: white;
}

/* Fix mobile menu in dark mode */
/* .dark-theme .nav-links {
    background-color: var(--card-dark);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
} */

.dark-theme .nav-links li a {
    color: var(--text-dark);
}

/* Fix mobile hamburger menu in dark theme */
.dark-theme .hamburger span {
    background-color: var(--text-dark);
}

@media (max-width: 768px) {
    .dark-theme .nav-links {
        background-color: var(--card-dark);
    }
    
    .dark-theme .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .dark-theme .nav-links li a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
}

/* Project Icon Styling */
.project-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-primary);
    transition: all 0.5s ease;
}

.project-icon i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: all 0.5s ease;
}

.project-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.project-card:hover .project-icon i {
    transform: scale(1.1) translateY(-5px);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .project-icon {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-bottom: 2px solid var(--primary-color);
}

.dark-theme .project-icon i {
    color: var(--primary-color);
}

.dark-theme .project-icon-bg {
    background: radial-gradient(circle at center, rgba(116, 0, 184, 0.2) 0%, transparent 70%);
}

/* Contact Options Styling */
.contact-options {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.contact-option {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.option-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.option-icon i {
    font-size: 2rem;
    color: white;
}

.contact-option h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-option p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.dark-theme .contact-option {
    background-color: var(--card-dark);
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .contact-option p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .option-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

@media (max-width: 992px) {
    .contact-options {
        flex-direction: column;
    }
    
    .contact-option {
        width: 100%;
    }
}

/* Make email link responsive */
@media (max-width: 576px) {
    .contact-link span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
} 