@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Enhanced Root Variables with Advanced Color Palette --- */
:root {
    --primary-color: #007bff;
    --primary-light: #00bcd4;
    --primary-gradient: linear-gradient(135deg, #00bcd4, #007bff);
    --secondary-color: #6c757d;
    --accent-color: #ffdd57;
    --accent-light: #ff9800;
    --accent-gradient: linear-gradient(135deg, #ff9800, #ffdd57);
    --background-light: #f8fafc;
    --background-dark: #0a0a0a;
    --background-gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a);
    --background-gradient-light: linear-gradient(135deg, #f8fafc, #e6f7ff, #f0f9ff);
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-light-bg: #ffffff;
    --card-light-shadow: rgba(0, 188, 212, 0.15);
    --card-dark-shadow: rgba(0, 0, 0, 0.3);
    --neon-glow: 0 0 20px rgba(0, 188, 212, 0.6);
    --particle-color: rgba(0, 188, 212, 0.8);
}

/* --- Global Styles with 3D Foundation --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: var(--background-gradient-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

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

/* === LOADING ANIMATION === */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-logo {
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    position: relative;
    animation: logoRotate 2s ease-in-out infinite;
    background: rgba(0, 188, 212, 0.1);
}

.loading-logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: logoSpin 1.5s linear infinite;
}

.loading-logo span {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-light);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

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

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 188, 212, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 188, 212, 1), 0 0 30px rgba(0, 188, 212, 0.8); }
}

.loading-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textSlideIn 1s ease 0.5s both;
}

.loading-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    animation: textSlideIn 1s ease 0.7s both;
}

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

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 5s ease-in-out forwards;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 55%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.loading-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-light);
    animation: textSlideIn 1s ease 0.9s both;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.particle:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation-delay: 0.5s;
    animation-duration: 7.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(5px) scale(1.1);
        opacity: 0.9;
    }
}

/* --- Simple Background Gradient --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 188, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 157, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body.light::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 188, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 157, 0, 0.03) 0%, transparent 50%);
}

/* --- Enhanced Header with 3D Effects --- */
header {
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    position: fixed;
    width: calc(100% - 40px);
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light header {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 188, 212, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(0, 188, 212, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 30px;
    align-items: center;
}

nav ul li {
    transition: transform 0.2s ease;
}

nav ul li:hover {
    transform: translateY(-2px);
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, transparent, rgba(0, 188, 212, 0.1));
    border: 1px solid transparent;
    display: inline-block;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

nav ul li a:hover::before {
    left: 0;
}

nav ul li a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--primary-gradient);
}

nav ul li a:focus {
    outline: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--primary-gradient);
}

nav ul li a:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

/* --- Enhanced About Section with 3D Profile --- */
section {
    padding: 120px 10%;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
}

#about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(26, 26, 26, 0.05));
    position: relative;
}

body.light #about {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.05), rgba(230, 247, 255, 0.05));
}

/* Headings styling for both themes */
h2, h3 {
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

body.light h2, body.light h3 {
    color: var(--primary-light);
    text-shadow: 0 2px 8px rgba(0, 188, 212, 0.08);
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

body.light h2:after {
    background: var(--primary-light);
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    border-radius: 25px;
    text-align: left;
    padding: 20px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.light .about-container {
    background: var(--card-light-bg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.about-container img {
    margin-right: 30px;
    width: 200px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    padding: 5px;
    background: white;
    transition: 0.3s ease-in-out;
}

.about-container img:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

body.light .about-container strong {
    color: var(--primary-light);
}

/* --- Highlight name styling --- */
.highlight-name {
    color: #00bcd4;
}

body.light .highlight-name {
    color: var(--primary-light);
}

/* --- Enhanced Typewriter Effect --- */
#typewriter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

#fixed-text {
    color: var(--text-light);
    font-weight: 900;
    margin-right: 20px;
    animation: textGlow 3s ease-in-out infinite;
}

body.light #fixed-text {
    color: var(--text-dark);
    animation: textGlowLight 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 20px rgba(0, 188, 212, 0.6), 0 0 30px rgba(0, 188, 212, 0.4); }
}

@keyframes textGlowLight {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
    50% { text-shadow: 0 0 20px rgba(0, 188, 212, 0.3), 0 0 30px rgba(0, 188, 212, 0.2); }
}

#typewriter {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 900;
    min-width: 350px;
    text-align: left;
    position: relative;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: typewriterGlow 2s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes typewriterGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
        transform: rotateY(0deg);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
        transform: rotateY(2deg);
    }
}

#typewriter::after {
    content: '|';
    color: var(--primary-light);
    animation: blink 1s infinite;
    margin-left: 5px;
}

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

/* --- Enhanced Skills Container --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    perspective: 1500px;
    position: relative;
}

.skills-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
}

.skill {
    background: var(--glass-bg);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.skill:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.3);
}

.skill {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px var(--card-dark-shadow);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

body.light .skill {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 188, 212, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(0, 188, 212, 0.05);
}

.skill img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 188, 212, 0.3));
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

body.light .skill img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    background: linear-gradient(135deg, 
        rgba(0, 188, 212, 0.05),
        rgba(0, 188, 212, 0.02)
    );
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.skill p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 15px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

body.light .skill p {
    color: var(--text-dark);
}

.skill:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 188, 212, 0.4);
    border-color: rgba(0, 188, 212, 0.5);
}

.skill:hover::before {
    opacity: 0.1;
}

.skill:hover::after {
    opacity: 1;
}

.skill:hover img {
    transform: rotateY(360deg) scale(1.2) translateZ(20px);
    filter: drop-shadow(0 8px 20px rgba(0, 188, 212, 0.6));
}

.skill:hover p {
    color: var(--primary-light);
    transform: translateZ(15px);
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

body.light .skill:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 188, 212, 0.5);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 80px rgba(0, 188, 212, 0.2);
}

body.light .skill:hover img {
    filter: drop-shadow(0 8px 20px rgba(0, 188, 212, 0.4));
}

body.light .skill:hover p {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

/* --- Enhanced Projects/Highlights Section --- */

/* Project section container */
#projects {
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
}

#projects h2 {
    margin-bottom: 50px;
    position: relative;
}

#projects h2:after {
    width: 80px;
    height: 4px;
}

/* --- Projects Grid Layout - 2 per row --- */
#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* Project category styling */
.project-category {
    background: rgba(30, 30, 30, 0.4);
    padding: 0;
    border-radius: 20px;
    margin-bottom: 60px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: none;
}

body.light .project-category {
    background: var(--card-light-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
}

.project-category:hover {
    transform: translateY(-15px) rotateY(0deg);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.3);
    border: none;
}

body.light .project-category:hover {
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.2);
    border: none;
}

/* Project inner styling */
.project {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
}

.project-front {
    position: relative;
    z-index: 2;
    background: transparent;
}

.project-header {
    padding: 25px;
    position: relative;
    z-index: 2;
}

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

.tech-tag {
    background: rgba(0, 188, 212, 0.2);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.light .tech-tag {
    background: rgba(0, 188, 212, 0.1);
}

.project-category:hover .tech-tag {
    background: rgba(0, 188, 212, 0.3);
}

.description {
    padding: 0 25px 25px;
    position: relative;
    z-index: 2;
}

.description p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

/* --- Enhanced Contact/Let's Collaborate Section --- */
#contact {
    padding: 100px 10%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(31, 31, 31, 0.9));
}

body.light #contact {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(240, 240, 240, 0.9));
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light .contact-text {
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.contact-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--primary-light);
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item a, .contact-item span {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.light .contact-item a, body.light .contact-item span {
    color: var(--text-dark);
}

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

/* WhatsApp styling */
.contact-item:has(.fa-whatsapp) i {
    color: #25D366;
}

.contact-item:has(.fa-whatsapp) a:hover {
    color: #25D366;
}

.social-container {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .social-container {
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.social-container h3 {
    margin-bottom: 25px;
    text-align: left;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.social-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

body.light .social-btn {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--primary-light);
}

/* LinkedIn styling */
.social-btn:has(.fa-linkedin-in) {
    border-color: rgba(0, 119, 181, 0.3);
}

.social-btn:has(.fa-linkedin-in) i {
    color: #0077B5;
}

.social-btn:has(.fa-linkedin-in):hover {
    background: #0077B5;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.social-btn:hover i {
    color: white;
}

/* --- Enhanced Footer --- */
footer {
    background: #141414;
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    position: relative;
}

body.light footer {
    background: #f0f0f0;
    color: var(--text-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(0, 188, 212, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.footer-content p {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

body.light .footer-nav a {
    color: var(--text-dark);
}

.footer-nav a:hover {
    color: var(--primary-light);
}

/* --- Theme Toggle Button --- */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.light #theme-toggle {
    background: var(--accent-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* --- Accessibility Enhancements --- */
.project-category:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light), 0 15px 35px rgba(0, 188, 212, 0.3);
    transform: translateY(-15px) rotateY(0deg);
}

.project-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light), 0 5px 15px rgba(0, 188, 212, 0.3);
}

.social-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-3px);
}

#theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px white, 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    header {
        width: calc(100% - 20px);
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 10px 0;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 10px;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
@media (max-width: 1200px) {
    #projects {
        padding: 80px 6%;
    }
    
    .project-image {
        height: 250px;
    }
}

@media (max-width: 992px) {
    #projects .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-category {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .project-image {
        height: 220px;
    }
    
    .project-header {
        padding: 20px;
    }
    
    .project-category h3 {
        font-size: 1.3rem;
    }
    
    .project .description {
        padding: 25px;
    }
    
    .project .description p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    section {
        padding: 80px 8%;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    #typewriter-container {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }

    #typewriter-container {
        flex-direction: column;
        height: auto;
        text-align: left;
    }

    #fixed-text {
        position: relative;
        right: auto;
        transform: none;
        margin-bottom: 5px;
    }

    #typewriter {
        min-width: 100%;
    }

    #theme-toggle {
        bottom: 20px;
        right: 15px;
    }
    
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-container img {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project img {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
        margin-top: 20px;
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
    
    .project-image {
        height: 180px;
    }
    
    .contact-text, .social-container {
        padding: 20px;
    }
}

@keyframes typewriter {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}