/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --navbar-bg: 255, 255, 255;
}

body.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --navbar-bg: 15, 23, 42;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.05;
    z-index: -2;
    pointer-events: none;
}

body.dark-mode::before {
    background: linear-gradient(-45deg, #2d3748, #4a5568, #553c9a, #6b46c1, #1e40af, #0369a1);
    opacity: 0.1;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #6366f1;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    left: 40%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    left: 50%;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    width: 8px;
    height: 8px;
    left: 60%;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 70%;
    animation-delay: 1.5s;
}

.particle:nth-child(8) {
    width: 12px;
    height: 12px;
    left: 80%;
    animation-delay: 3.5s;
}

.particle:nth-child(9) {
    width: 6px;
    height: 6px;
    left: 90%;
    animation-delay: 2.5s;
}

.particle:nth-child(10) {
    width: 8px;
    height: 8px;
    left: 95%;
    animation-delay: 4.5s;
}

body.dark-mode .particle {
    background: #cbd5e1;
    opacity: 0.3;
}

/* Geometric Shapes Background */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: geometricFloat 20s linear infinite;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

.shape-square {
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid #f59e0b;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.shape:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 5%;
    animation-delay: 10s;
    animation-duration: 35s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 20%;
    animation-delay: 15s;
    animation-duration: 40s;
}

.shape:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 20s;
    animation-duration: 45s;
}

body.dark-mode .shape-circle {
    background: linear-gradient(45deg, #475569, #64748b);
}

body.dark-mode .shape-square {
    background: linear-gradient(45deg, #374151, #4b5563);
}

body.dark-mode .shape-triangle {
    border-bottom-color: #6b7280;
}

body.dark-mode .shape {
    opacity: 0.05;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Enhanced Responsive Design */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(var(--navbar-bg), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(var(--navbar-bg), 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px var(--shadow-hover);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo h2 {
    color: #6366f1;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    transition: all 0.3s ease;
}

.nav-logo h2:hover {
    transform: scale(1.05);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #6366f1;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid #6366f1;
    color: #6366f1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #6366f1;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

body.dark-mode .theme-toggle {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

body.dark-mode .theme-toggle:hover {
    border-color: #6366f1;
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #6366f1;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #6366f1;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding-top: 2rem;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-top: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--bg-secondary);
        color: #6366f1;
        transform: translateY(0);
        padding-left: 2.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #6366f1, #8b5cf6);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .nav-container {
        padding: 0 40px;
    }
    
    .nav-menu {
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Hide scrollbar on mobile menu */
@media (max-width: 768px) {
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-menu {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Hero Section - Enhanced with Animations */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    transition: transform 0.3s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
    opacity: 0;
    animation: slideInFromLeft 1s ease 0.5s forwards;
}

.highlight {
    background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
    background-size: 100% 0.2em;
    background-repeat: no-repeat;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    animation: highlightExpand 1s ease 1.2s forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideInFromLeft 1s ease 1s forwards;
    border-right: 2px solid #6366f1;
    white-space: nowrap;
    overflow: hidden;
    min-height: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    animation: slideInFromLeft 1s ease 1.5s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInFromLeft 1s ease 2s forwards;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: #6366f1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5856eb, #7c3aed);
    border-color: #5856eb;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: #6366f1;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-picture {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: profileSlideIn 1.5s ease 2.5s forwards;
    position: relative;
}

.profile-picture::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
    border-radius: 50%;
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-picture:hover img {
    transform: scale(1.1);
}

/* Floating shapes animations */
.floating-shape {
    will-change: transform;
}

/* Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes profileSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes highlightExpand {
    0% {
        background-size: 0 0.2em;
    }
    100% {
        background-size: 100% 0.2em;
    }
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatRandom {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .profile-picture {
        width: 280px;
        height: 280px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-profile-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-profile-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-profile-pic {
    position: relative;
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-profile-pic.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.about-profile-pic img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.about-profile-pic img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

/* Profile picture animations */
.about-profile-pic::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.about-profile-pic:hover::before {
    opacity: 0.7;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-100px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-200px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-100px) rotate(270deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Wave Animation */
.wave-background {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    opacity: 0.1;
    z-index: -1;
    animation: wave 3s ease-in-out infinite;
}

body.dark-mode .wave-background {
    background: linear-gradient(to right, #475569, #64748b);
    opacity: 0.2;
}

@keyframes wave {
    0%, 100% {
        clip-path: polygon(0 20px, 100% 0px, 100% 100%, 0% 100%);
    }
    50% {
        clip-path: polygon(0 0px, 100% 20px, 100% 100%, 0% 100%);
    }
}

@keyframes geometricFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-50px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-100px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-50px) rotate(270deg) scale(1.05);
    }
    100% {
        transform: translateY(0px) rotate(360deg) scale(1);
    }
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text.animate p {
    opacity: 1;
    transform: translateY(0);
}

.about-text.animate p:nth-child(1) {
    transition-delay: 0.2s;
}

.about-text.animate p:nth-child(2) {
    transition-delay: 0.4s;
}

/* About Section Responsive Styles */
@media (max-width: 768px) {
    .about-profile-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-profile-pic {
        justify-self: center;
        transform: translateY(-20px) scale(0.9);
    }
    
    .about-profile-pic.animate {
        transform: translateY(0) scale(1);
    }
    
    .about-text {
        transform: translateY(20px);
    }
    
    .about-text.animate {
        transform: translateY(0);
    }
    
    .about-profile-pic img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .about-profile-section {
        gap: 1.5rem;
    }
    
    .about-profile-pic img {
        width: 120px;
        height: 120px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Skills Section - Enhanced Animations */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    animation: skillFloat 4s ease-in-out infinite;
}

/* Staggered animation delays for each card */
.skill-card:nth-child(1) { animation-delay: 0s; }
.skill-card:nth-child(2) { animation-delay: 0.5s; }
.skill-card:nth-child(3) { animation-delay: 1s; }
.skill-card:nth-child(4) { animation-delay: 1.5s; }
.skill-card:nth-child(5) { animation-delay: 2s; }
.skill-card:nth-child(6) { animation-delay: 2.5s; }
.skill-card:nth-child(7) { animation-delay: 3s; }
.skill-card:nth-child(8) { animation-delay: 3.5s; }

/* Glowing border effect */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444, #6366f1);
    background-size: 300% 300%;
    animation: gradientBorder 3s ease infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

/* Floating particles effect */
.skill-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: particleFloat 2s ease-in-out infinite;
}

.skill-card:hover::after {
    opacity: 0.6;
    animation: particleExplode 0.8s ease-out forwards;
}

/* Enhanced hover effects */
.skill-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: #6366f1;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* SVG Icon animations */
.skill-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    animation: iconPulse 0.6s ease-in-out;
}

/* Technology-specific colors and hover effects */
/* HTML5 - Orange */
.html-icon svg {
    fill: #e34f26;
}

.skill-card:nth-child(1):hover {
    border-color: #e34f26 !important;
    box-shadow: 0 20px 40px rgba(227, 79, 38, 0.3) !important;
}

/* CSS3 - Blue */
.css-icon svg {
    fill: #1572b6;
}

.skill-card:nth-child(2):hover {
    border-color: #1572b6 !important;
    box-shadow: 0 20px 40px rgba(21, 114, 182, 0.3) !important;
}

/* JavaScript - Yellow */
.js-icon svg {
    fill: #f7df1e;
}

.skill-card:nth-child(3):hover {
    border-color: #f7df1e !important;
    box-shadow: 0 20px 40px rgba(247, 223, 30, 0.3) !important;
}

/* C Programming - Hexagonal Blue Design */
.c-icon svg {
    fill: #659AD2;
}

.c-icon svg path:first-child {
    fill: #659AD2;
}

.c-icon svg path:nth-child(2) {
    fill: #5C85BA;
}

.c-icon svg path:nth-child(3) {
    fill: white;
}

.c-icon svg path:last-child {
    stroke: #2E5A87;
}

.skill-card:nth-child(4):hover {
    border-color: #659AD2 !important;
    box-shadow: 0 20px 40px rgba(101, 154, 210, 0.3) !important;
}

/* Python - Blue */
.python-icon svg {
    fill: #3776ab;
}

.skill-card:nth-child(5):hover {
    border-color: #3776ab !important;
    box-shadow: 0 20px 40px rgba(55, 118, 171, 0.3) !important;
}

/* Java - Orange */
.java-icon svg {
    fill: #ed8b00;
}

.skill-card:nth-child(6):hover {
    border-color: #ed8b00 !important;
    box-shadow: 0 20px 40px rgba(237, 139, 0, 0.3) !important;
}

/* Git - Orange/Red */
.git-icon svg {
    fill: #f05032;
}

.skill-card:nth-child(7):hover {
    border-color: #f05032 !important;
    box-shadow: 0 20px 40px rgba(240, 80, 50, 0.3) !important;
}

/* GitHub - Dark/White based on theme */
.github-icon svg {
    fill: #333;
}

.skill-card:nth-child(8):hover {
    border-color: #333 !important;
    box-shadow: 0 20px 40px rgba(51, 51, 51, 0.3) !important;
}

/* Dark mode adjustments */
body.dark-mode .github-icon svg {
    fill: #fff;
}

body.dark-mode .skill-card:nth-child(8):hover {
    border-color: #fff !important;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3) !important;
}

/* Icon glow effect for SVG */
.skill-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.skill-card:hover .skill-icon::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Title animation */
.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover h3 {
    color: #6366f1;
    transform: translateY(-2px);
}

/* Text reveal animation */
.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.4s ease;
}

.skill-card:hover h3::after {
    width: 100%;
}

/* Description animation */
.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.skill-card:hover p {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Ripple effect on click */
.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

/* Skill Progress Animation */
.skill-card .skill-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: progressGlow 2s ease infinite;
    transition: width 0.8s ease;
}

.skill-card:hover .skill-progress {
    width: 100%;
}

@keyframes progressGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Projects Section - Enhanced Animations */
.projects {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    animation: projectFloat 6s ease-in-out infinite;
}

/* Staggered animation delays for project cards */
.project-card:nth-child(1) { 
    animation-delay: 0s; 
}
.project-card:nth-child(2) { 
    animation-delay: 0.5s; 
}

/* Project card floating animation */
@keyframes projectFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced hover effects */
.project-card:hover {
    transform: translateY(-15px) scale(1.02) perspective(1000px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px var(--shadow-hover);
    border-color: #6366f1;
}

/* Project image container */
.project-image {
    position: relative;
    height: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(1.1);
}

/* Project overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Project overlay links */
.project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform: scale(0);
    animation: linkBounceIn 0.5s ease forwards;
}

.project-card:hover .project-link:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:hover .project-link:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes linkBounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-link i {
    font-size: 1.2rem;
}

/* Project content */
.project-content {
    padding: 1.5rem;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Gradient accent line */
.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    border-radius: 2px;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    margin-top: 0.5rem;
}

.project-card:hover .project-content h3 {
    color: #6366f1;
    transform: translateY(-2px);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.project-card:hover .project-content p {
    color: var(--text-primary);
}

/* Project tech tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Project card entrance animation */
@keyframes projectEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card {
    animation: projectEnter 0.8s ease forwards;
    opacity: 0;
}

.project-card.fade-in {
    opacity: 1;
}

/* Project ripple effect */
.project-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: projectRippleEffect 0.6s linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes projectRippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure proper stacking context */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    z-index: 3;
}

.project-content {
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        aspect-ratio: 1.2;
    }
    
    .project-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .project-image {
        height: 65%;
    }
    
    .project-content {
        height: 35%;
        padding: 1rem;
    }
    
    .project-content::before {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        aspect-ratio: 1.3;
    }
    
    .project-image {
        height: 70%;
    }
    
    .project-content {
        height: 30%;
        padding: 0.75rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
}

/* ==============================
   CHAT BUBBLE & CHATBOT STYLES
   ============================== */

/* Chat Bubble Container */
.chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* Chat Icon Button */
.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: chatPulse 2s infinite;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

/* Chat Notification */
.chat-notification {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--shadow-hover);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(10px);
    animation: notificationSlide 0.5s ease forwards;
    animation-delay: 1s;
}

.chat-notification::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: var(--bg-card);
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-hover);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chat-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.ai-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.chat-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

/* Message Styles */
.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease;
}

.user-message {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.bot-message.loading {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-style: italic;
}

/* Typing Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite both;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat Input Container */
.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-primary);
}

#chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

#chat-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#chat-input::placeholder {
    color: var(--text-secondary);
}

#chat-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

#chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animations */
@keyframes chatPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5), 0 0 0 10px rgba(99, 102, 241, 0.1);
    }
}

@keyframes notificationSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageSlide {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-bubble {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-window {
        width: 320px;
        height: 450px;
        bottom: 70px;
        right: -10px;
    }

    .chat-notification {
        display: none;
    }

    #chat-send {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50% !important;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 300px;
        height: 400px;
        right: -20px;
    }

    .chat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    #chat-send {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
        flex-shrink: 0;
    }
}

/* Error States */
.chat-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

body.dark-mode .chat-error {
    background: #450a0a;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

/* Success States */
.chat-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

body.dark-mode .chat-success {
    background: #064e3b;
    color: #6ee7b7;
    border: 1px solid #047857;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

/* Contact Info Styling */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: #6366f1;
}

.contact-item:hover::before {
    width: 100%;
    opacity: 0.1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-details h4 {
    color: #6366f1;
}

.contact-item:hover .contact-details p {
    color: var(--text-primary);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-hover);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.form-input:focus {
    border-color: #6366f1;
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-input:focus::placeholder {
    opacity: 0.7;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.6;
}

/* Submit Button Styling */
.contact-submit {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5856eb, #7c3aed);
}

.contact-submit:hover::before {
    left: 100%;
}

.contact-submit:active {
    transform: translateY(-1px);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success/Error Messages */
.success-message {
    margin-bottom: 1rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.75rem;
}

/* Loading State */
.form-input.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .contact-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation for contact items */
@keyframes contactItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item {
    animation: contactItemSlide 0.6s ease forwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

/* Form animation */
@keyframes formSlide {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form-wrapper {
    animation: formSlide 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Footer Section */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.social-links a i {
    font-size: 1.1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    .social-links a i {
        font-size: 1.2rem;
    }
}