/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Neo-Brutalist Color Palette */
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff6b35;
    --accent-light: #ffaa80;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-800: #333333;
    --shadow-color: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 0;
    --border-width: 3px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b35;
    --accent-light: #ff8f5a;
    --gray-100: #2a2a2a;
    --gray-200: #3a3a3a;
    --gray-800: #cccccc;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

/* Dark theme specific adjustments */
[data-theme="dark"] .profile-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--primary-color);
}

[data-theme="dark"] .project-placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, #cc4a1a 100%);
    color: var(--secondary-color);
}

[data-theme="dark"] .geometric-shape.shape-1 {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .geometric-shape.shape-2 {
    background: var(--gray-100);
}

[data-theme="dark"] .geometric-shape.shape-3 {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Dark theme navigation fixes */
[data-theme="dark"] .nav {
    background: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}

[data-theme="dark"] .logo h2 {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-menu a {
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .hamburger span {
    background: var(--primary-color);
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border-bottom: var(--border-width) solid var(--primary-color);
    z-index: 1000;
    transition: var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

/* Scrolled navbar state that respects themes */
.nav.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav.scrolled[data-theme="light"],
.nav.scrolled:not([data-theme]) {
    background: rgba(255, 255, 255, 0.95) !important;
}

.nav.scrolled[data-theme="dark"] {
    background: rgba(26, 26, 26, 0.95) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition-fast), color var(--transition-normal);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Resume Link Styling */
.resume-link {
    background: var(--accent-color) !important;
    color: var(--secondary-color) !important;
    padding: 8px 16px !important;
    border: var(--border-width) solid var(--primary-color) !important;
    box-shadow: 4px 4px 0 var(--primary-color) !important;
    transition: var(--transition-fast) !important;
}

.resume-link:hover {
    background: var(--accent-light) !important;
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0 var(--primary-color) !important;
}

.resume-link::after {
    display: none !important;
}

/* Dark theme resume link */
[data-theme="dark"] .resume-link {
    background: var(--accent-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 4px 4px 0 var(--primary-color) !important;
}

[data-theme="dark"] .resume-link:hover {
    background: var(--accent-light) !important;
    box-shadow: 6px 6px 0 var(--primary-color) !important;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--secondary-color);
    border: var(--border-width) solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--accent-color);
}

.theme-icon {
    transition: var(--transition-fast);
    display: block;
    filter: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-fast), background-color var(--transition-normal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: var(--font-weight-bold);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--accent-light);
    z-index: -1;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--gray-800);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-normal);
    border: var(--border-width) solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--primary-color);
}

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

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--accent-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometric-shape {
    position: absolute;
    border: var(--border-width) solid var(--primary-color);
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    transform: rotate(15deg);
    z-index: 3;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    transform: rotate(-10deg) translate(100px, -50px);
    z-index: 3;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    transform: rotate(30deg) translate(-80px, 80px);
    z-index: 3;
}

/* New Enhanced Geometric Animations */

/* Floating Grid Background */
.floating-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-item {
    position: absolute;
    border: 2px solid var(--accent-color);
    opacity: 0.6;
    animation: float-drift 8s ease-in-out infinite;
}

.floating-square {
    width: 15px;
    height: 15px;
}

.floating-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.floating-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid var(--accent-color);
    border-width: 0 8px 14px;
    border-style: solid;
    border-color: transparent transparent var(--accent-color);
}

@keyframes float-drift {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) translateX(-5px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-10px) translateX(-15px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Pulse Rings Animation */
.pulse-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: pulse-expand 4s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1.3s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes pulse-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Enhanced hover effects for existing shapes */
.geometric-shape {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.geometric-shape:hover {
    transform-origin: center;
    filter: drop-shadow(0 10px 20px var(--shadow-color));
}

.shape-1:hover {
    transform: rotate(15deg) scale(1.1);
}

.shape-2:hover {
    transform: rotate(-10deg) translate(100px, -50px) scale(1.1);
}

.shape-3:hover {
    transform: rotate(30deg) translate(-80px, 80px) scale(1.1);
}

/* Dark theme adjustments for new animations */
[data-theme="dark"] .floating-item {
    border-color: var(--accent-color);
}

[data-theme="dark"] .floating-triangle {
    border-bottom-color: var(--accent-color);
}

[data-theme="dark"] .pulse-ring {
    border-color: var(--accent-color);
}

/* Section Divider Animations */
.section-divider {
    padding: 40px 0;
    background: var(--secondary-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wave Pattern Divider */
.wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.wave-bar {
    width: 6px;
    height: 20px;
    background: var(--accent-color);
    border: 2px solid var(--primary-color);
    animation: wave-pulse 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.4s; }
.wave-bar:nth-child(8) { animation-delay: 0.3s; }
.wave-bar:nth-child(9) { animation-delay: 0.2s; }
.wave-bar:nth-child(10) { animation-delay: 0.1s; }

@keyframes wave-pulse {
    0%, 100% { 
        transform: scaleY(1); 
        background: var(--accent-color);
    }
    50% { 
        transform: scaleY(2.5); 
        background: var(--accent-light);
    }
}

/* Morphing Shapes Divider */
.morphing-shapes-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.morphing-shape {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border: 3px solid var(--primary-color);
    animation: morph-cycle 4s ease-in-out infinite;
}

@keyframes morph-cycle {
    0% { 
        border-radius: 0%; 
        transform: rotate(0deg) scale(1); 
        background: var(--accent-color);
    }
    25% { 
        border-radius: 50%; 
        transform: rotate(90deg) scale(1.2); 
        background: var(--accent-light);
    }
    50% { 
        border-radius: 0% 50% 50% 50%; 
        transform: rotate(180deg) scale(0.8); 
        background: var(--primary-color);
    }
    75% { 
        border-radius: 50%; 
        transform: rotate(270deg) scale(1.1); 
        background: var(--accent-light);
    }
    100% { 
        border-radius: 0%; 
        transform: rotate(360deg) scale(1); 
        background: var(--accent-color);
    }
}

/* Dark theme adjustments for dividers */
[data-theme="dark"] .section-divider {
    background: var(--secondary-color);
}

[data-theme="dark"] .wave-bar {
    border-color: var(--primary-color);
}

[data-theme="dark"] .morphing-shape {
    border-color: var(--primary-color);
}

/* Interactive Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray-800);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background: var(--primary-color);
    margin: 10px auto;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid var(--primary-color);
}

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

/* Section Styles */
section {
    padding: var(--section-padding);
    min-height: auto;
    display: block;
    visibility: visible;
    opacity: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--gray-100);
}

.about-content {
    display: block;
    width: 100%;
}

.about-text-full {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text-full p {
    margin-bottom: 20px;
    color: var(--gray-800);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat p {
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* About image styles - no longer needed
.about-image {
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
    border: var(--border-width) solid var(--primary-color);
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
*/

/* Placeholder Images */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}

.profile-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-800);
    height: 400px;
}

.project-placeholder {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    color: var(--secondary-color);
    height: 250px;
}

.image-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: var(--border-width) solid var(--accent-color);
    pointer-events: none;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--secondary-color);
    border: var(--border-width) solid var(--primary-color);
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 var(--primary-color);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-img {
    border-radius: 0;
    border: var(--border-width) solid var(--primary-color);
    box-shadow: 0 0 0 var(--primary-color);
    transition: all var(--transition-normal);
}

.project-card:hover .project-img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: var(--border-width) solid var(--primary-color);
    transition: var(--transition-fast);
}

.project-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.project-info p {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--gray-100);
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
    border: 2px solid var(--primary-color);
}

/* Skills Section */
.skills {
    background: var(--gray-100);
}

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

.skills-category h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.skill {
    margin-bottom: 25px;
}

.skill span {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background: var(--gray-200);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    transition: width 1.5s ease-in-out 0.3s;
    transform-origin: left;
}

/* Animation trigger class for skill bars */
.skill-progress.animate {
    animation: expandSkillBar 1.5s ease-out forwards;
}

@keyframes expandSkillBar {
    from { 
        width: 0%; 
        transform: scaleX(0);
    }
    to { 
        width: var(--target-width, 100%); 
        transform: scaleX(1);
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    color: var(--gray-800);
}

.contact-item a,
.contact-item span {
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-color);
}

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

.social-link {
    padding: 10px 15px;
    border: var(--border-width) solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--accent-color);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: var(--border-width) solid var(--primary-color);
    background: var(--secondary-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    background: var(--secondary-color);
    padding: 0 10px;
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-normal), background-color var(--transition-normal);
        border-top: var(--border-width) solid var(--primary-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* About content is now full width, no grid changes needed */
    .about-content {
        display: block;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 1;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

.animate-on-scroll.fadeInUp {
    animation-name: fadeInUp;
}

.animate-on-scroll.fadeInLeft {
    animation-name: fadeInLeft;
}

.animate-on-scroll.fadeInRight {
    animation-name: fadeInRight;
}

/* Buy Me Coffee Widget */
.coffee-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    animation: slideInCoffee 0.6s ease forwards;
    animation-delay: 1s;
}

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

.coffee-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--accent-color);
    color: var(--secondary-color);
    border: var(--border-width) solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 4px 4px 0 var(--primary-color);
    user-select: none;
}

.coffee-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--accent-color);
}

.coffee-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.coffee-text {
    white-space: nowrap;
    transition: var(--transition-fast);
}

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

/* Dark theme support for coffee widget */
[data-theme="dark"] .coffee-button {
    border-color: var(--primary-color);
    box-shadow: 4px 4px 0 var(--primary-color);
}

[data-theme="dark"] .coffee-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    box-shadow: 7px 7px 0 var(--accent-color);
}

/* Mobile responsiveness for coffee widget */
@media (max-width: 768px) {
    .coffee-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .coffee-button {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .coffee-text {
        display: none;
    }
    
    .coffee-icon {
        font-size: 1.4rem;
    }
}

/* Form Messages */
.form-message {
    margin: 20px 0;
    padding: 15px 20px;
    border: var(--border-width) solid;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: slideInMessage 0.3s ease;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border-color: #4CAF50;
    box-shadow: 4px 4px 0 #4CAF50;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f44336;
    box-shadow: 4px 4px 0 #f44336;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme support for form messages */
[data-theme="dark"] .form-message-success {
    background: #1a3a1a;
    color: #4CAF50;
}

[data-theme="dark"] .form-message-error {
    background: #3a1a1a;
    color: #f44336;
}
