/* ================ Base Variables ================ */
:root {
    /* Light Theme */
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --text-color: #14213d;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --bg-light: #ffffff;
    --bg-dark: #e9ecef;
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Dark Theme */
    --dark-primary-color: #7f95ff;
    --dark-secondary-color: #a855f7;
    --dark-accent-color: #f973aa;
    --dark-text-color: #f8fafc;
    --dark-text-light: #94a3b8;
    --dark-bg-color: #0f172a;
    --dark-bg-light: #1e293b;
    --dark-bg-dark: #0f172a;
    --dark-border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 30px rgba(67, 97, 238, 0.3);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Z-index */
    --z-preloader: 9999;
    --z-header: 1000;
    --z-mobile-nav: 900;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

body.dark-mode {
    color: var(--dark-text-color);
    background-color: var(--dark-bg-color);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

body.dark-mode .preloader {
    background-color: var(--dark-bg-light);
}

.preloader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 400px;
    width: 100%;
    padding: 3rem;
}

.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--text-color);
    margin-bottom: 2rem;
}

body.dark-mode .preloader-logo {
    color: var(--dark-text-color);
}

.logo-letter {
    display: inline-block;
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition);
}

.logo-letter:nth-child(1) {
    animation: letterFloat 3s ease-in-out infinite;
}

.logo-letter:nth-child(2) {
    animation: letterFloat 3s ease-in-out infinite 0.2s;
}

.logo-letter:nth-child(3) {
    animation: letterFloat 3s ease-in-out infinite 0.4s;
}

.logo-dot {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite 0.6s;
}

body.dark-mode .logo-dot {
    color: var(--dark-primary-color);
}

.preloader-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

body.dark-mode .preloader-progress {
    background-color: rgba(127, 149, 255, 0.1);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.4s ease;
}

body.dark-mode .progress-bar {
    background: linear-gradient(90deg, var(--dark-primary-color), var(--dark-secondary-color));
}

.progress-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-light);
    align-self: flex-start;
}

body.dark-mode .progress-text {
    color: var(--dark-text-light);
}

.preloader-message {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

body.dark-mode .preloader-message {
    color: var(--dark-text-light);
}

.preloader-animation {
    position: relative;
    width: 100px;
    height: 100px;
}

.animation-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

body.dark-mode .animation-circle {
    border-top-color: var(--dark-primary-color);
}

.circle-1 {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation-delay: 0.1s;
}

.circle-2 {
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    animation-delay: 0.2s;
    animation-direction: reverse;
}

.circle-3 {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    animation-delay: 0.3s;
}

.circle-4 {
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    animation-delay: 0.4s;
    animation-direction: reverse;
}

/* ================ Header & Navigation Styles ================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    background-color: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-header);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .header {
    background-color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

body.dark-mode .header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    z-index: 1;
    padding: 0.5rem 1rem;
    overflow: hidden;
}

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

.logo-text {
    position: relative;
    z-index: 2;
}

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

body.dark-mode .logo-dot {
    color: var(--dark-primary-color);
}

.logo-highlight {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
    z-index: 1;
    transition: var(--transition-slow);
}

.logo:hover .logo-highlight {
    left: 100%;
}

/* Navigation Styles */
.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

body.dark-mode .nav-link {
    color: var(--dark-text-light);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

body.dark-mode .nav-link.active {
    color: var(--dark-primary-color);
}

.link-icon {
    margin-right: 0.8rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.link-text {
    position: relative;
    z-index: 1;
}

.link-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

body.dark-mode .link-hover {
    background-color: var(--dark-primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

body.dark-mode .nav-link:hover {
    color: var(--dark-primary-color);
}

.nav-link:hover .link-icon {
    transform: translateY(-3px);
}

.nav-link:hover .link-hover {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active .link-hover {
    transform: scaleX(1);
    transform-origin: left;
}

/* Theme Toggle Styles */
.theme-toggle {
    margin-left: 2rem;
}

.theme-switch {
    display: none;
}

.theme-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    height: 26px;
    background-color: var(--bg-dark);
    border-radius: 50px;
    padding: 0.3rem;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .theme-label {
    background-color: var(--dark-bg-dark);
}

.theme-label i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.theme-label .fa-moon {
    opacity: 0;
    transform: translateX(20px);
}

.theme-label .fa-sun {
    opacity: 1;
    transform: translateX(0);
}

.theme-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .theme-ball {
    background-color: var(--dark-bg-light);
}

.theme-switch:checked + .theme-label .fa-moon {
    opacity: 1;
    transform: translateX(0);
}

.theme-switch:checked + .theme-label .fa-sun {
    opacity: 0;
    transform: translateX(-20px);
}

.theme-switch:checked + .theme-label .theme-ball {
    transform: translateX(24px);
}

/* Mobile Menu Toggle Styles */
.menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 100%;
    height: 100%;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

body.dark-mode .hamburger-line {
    background-color: var(--dark-text-color);
}

.line-1 {
    top: 20%;
    transform: translateY(-50%);
}

.line-2 {
    top: 50%;
    transform: translateY(-50%);
}

.line-3 {
    top: 80%;
    transform: translateY(-50%);
}

.menu-toggle.active .line-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .line-2 {
    opacity: 0;
}

.menu-toggle.active .line-3 {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: var(--z-mobile-nav);
    transform: translateX(-100%);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    padding: 8rem 3rem 3rem;
    overflow-y: auto;
}

body.dark-mode .mobile-nav {
    background-color: var(--dark-bg-light);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: 3rem;
}

.mobile-nav-item {
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
}

body.dark-mode .mobile-nav-link {
    color: var(--dark-text-light);
}

.mobile-nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

body.dark-mode .mobile-nav-link.active {
    color: var(--dark-primary-color);
    background-color: rgba(127, 149, 255, 0.1);
}

.mobile-link-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

body.dark-mode .mobile-link-icon {
    background-color: rgba(127, 149, 255, 0.1);
    color: var(--dark-primary-color);
}

.mobile-nav-link.active .mobile-link-icon {
    background-color: var(--primary-color);
    color: white;
}

body.dark-mode .mobile-nav-link.active .mobile-link-icon {
    background-color: var(--dark-primary-color);
}

.mobile-link-text {
    flex: 1;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.mobile-theme-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-light);
}

body.dark-mode .mobile-theme-text {
    color: var(--dark-text-light);
}

.mobile-theme-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    height: 26px;
    background-color: var(--bg-dark);
    border-radius: 50px;
    padding: 0.3rem;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .mobile-theme-label {
    background-color: var(--dark-bg-dark);
}

.mobile-theme-label i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.mobile-theme-label .fa-moon {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-theme-label .fa-sun {
    opacity: 1;
    transform: translateX(0);
}

.mobile-theme-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .mobile-theme-ball {
    background-color: var(--dark-bg-light);
}

.theme-switch:checked + .mobile-theme-label .fa-moon {
    opacity: 1;
    transform: translateX(0);
}

.theme-switch:checked + .mobile-theme-label .fa-sun {
    opacity: 0;
    transform: translateX(-20px);
}

.theme-switch:checked + .mobile-theme-label .mobile-theme-ball {
    transform: translateX(24px);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

body.dark-mode .mobile-social-links {
    border-top: 1px solid var(--dark-border-color);
}

.mobile-social-link {
    width: 45px;
    height: 45px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.6rem;
    transition: var(--transition);
}

body.dark-mode .mobile-social-link {
    background-color: var(--dark-bg-dark);
    color: var(--dark-text-light);
}

.mobile-social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

body.dark-mode .mobile-social-link:hover {
    background-color: var(--dark-primary-color);
}

/* ================ Animations ================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ================ Responsive Design ================ */
@media (max-width: 992px) {
    .navbar {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header.scrolled {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 2rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .mobile-nav {
        padding: 7rem 2rem 2rem;
    }
    
    .mobile-nav-link {
        font-size: 1.6rem;
        padding: 1.2rem;
    }
    
    .mobile-link-icon {
        width: 25px;
        height: 25px;
        margin-right: 1rem;
        font-size: 1.2rem;
    }
    
    .mobile-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

/* ================ Enhanced Hero Section ================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 15rem 0 10rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-color);
    transition: var(--transition);
    isolation: isolate;
}

body.dark-mode .hero {
    background-color: var(--dark-bg-color);
}

/* ================ Advanced Background Elements ================ */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 3D Floating Elements */
.bg-element-3d {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
    filter: blur(60px);
    animation: float3D 25s infinite ease-in-out;
    transform-style: preserve-3d;
    will-change: transform;
}

body.dark-mode .bg-element-3d {
    opacity: 0.1;
}

.element-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
    transform: rotateX(45deg) rotateY(15deg);
}

.element-2 {
    width: 700px;
    height: 700px;
    bottom: -10%;
    right: -10%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: 5s;
    animation-direction: reverse;
    transform: rotateX(60deg) rotateY(-20deg);
}

.element-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: 15%;
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    animation-delay: 8s;
    transform: rotateX(30deg) rotateY(45deg);
}

/* Floating Particles */
.particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(15px);
    animation: floatParticle 20s infinite linear;
    will-change: transform;
}

body.dark-mode .particle {
    opacity: 0.15;
}

.particle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 30s;
    animation-direction: reverse;
}

.particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 7s;
    animation-duration: 35s;
}

/* Interactive Grid Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(67, 97, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.5;
    transition: var(--transition);
}

body.dark-mode .grid-bg {
    background-image: 
        linear-gradient(rgba(127, 149, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 149, 255, 0.05) 1px, transparent 1px);
    opacity: 0.8;
}

/* ================ Hero Content ================ */
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.hero-content {
    max-width: 600px;
    position: relative;
}

/* Animated Greeting */
.subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

body.dark-mode .subtitle {
    color: var(--dark-text-light);
}

.greeting-emoji {
    font-size: 1.6rem;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

/* Dynamic Title with Gradient Text */
.title {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    -webkit-background-clip: text;
    background-clip: text;
    color: #ffff;
    position: relative;
}

.title-name {
    display: block;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.3), rgba(142, 67, 238, 0.3));
    z-index: -1;
    border-radius: 4px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.title:hover .title-highlight::after {
    transform: scaleX(1);
}

/* Advanced Typewriter Effect */
.typewriter-container {
    position: relative;
    margin-bottom: 3rem;
    min-height: 4rem;
}

.typewriter {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--text-light);
    display: inline-block;
    position: relative;
    z-index: 2;
}

body.dark-mode .typewriter {
    color: var(--dark-text-light);
}

.typewriter-gradient {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    filter: blur(15px);
    opacity: 0.3;
    border-radius: 10px;
    transform: scale(0.95) translateY(5px);
    transition: all 0.3s ease;
}

.typewriter-container:hover .typewriter-gradient {
    opacity: 0.4;
    transform: scale(1) translateY(0);
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 3.5rem;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    margin-left: 0.5rem;
    animation: blink 1s infinite, pulse 2s infinite;
}

/* Hero Text with Animated Underline */
.hero-text {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 500px;
    line-height: 1.8;
    position: relative;
}

body.dark-mode .hero-text {
    color: var(--dark-text-light);
}

.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.text-highlight:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Enhanced Buttons with 3D Effect */
.hero-btns {
    display: flex;
    gap: 2rem;
    margin-bottom: 5rem;
    perspective: 1000px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform;
}

.btn span {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

.btn-icon {
    font-size: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateZ(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3),
                0 4px 10px rgba(67, 97, 238, 0.2),
                inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

body.dark-mode .btn-primary {
    background-color: var(--dark-primary-color);
    box-shadow: 0 10px 30px rgba(127, 149, 255, 0.3),
                0 4px 10px rgba(127, 149, 255, 0.2),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.4),
                0 6px 15px rgba(67, 97, 238, 0.3),
                inset 0 -3px 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode .btn-primary:hover {
    box-shadow: 0 15px 35px rgba(127, 149, 255, 0.4),
                0 6px 15px rgba(127, 149, 255, 0.3),
                inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.btn-primary:hover span {
    transform: translateX(2px);
}

.btn-primary .btn-hover-effect {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid rgba(67, 97, 238, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .btn-secondary {
    color: var(--dark-primary-color);
    border: 2px solid rgba(127, 149, 255, 0.2);
    background-color: rgba(15, 23, 42, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(67, 97, 238, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-3px) rotateX(-5deg);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.1);
}

body.dark-mode .btn-secondary:hover {
    background-color: rgba(127, 149, 255, 0.05);
    border-color: var(--dark-primary-color);
}

.btn-secondary:hover .btn-icon {
    transform: translateX(5px);
}

.btn-secondary:hover span {
    transform: translateX(2px);
}

.btn-secondary .btn-hover-effect {
    background: rgba(67, 97, 238, 0.1);
}

.btn:hover .btn-hover-effect {
    opacity: 1;
}

/* Interactive Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.stat-item {
    position: relative;
    padding-left: 2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) translateZ(10px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.stat-item:hover::before {
    height: 110%;
    top: -5%;
}

body.dark-mode .stat-item::before {
    background: linear-gradient(to bottom, var(--dark-primary-color), var(--dark-secondary-color));
}

.stat-number {
    font-size: 3.6rem;
    font-weight: 700;
    -webkit-background-clip: text;
    background-clip: text;
    color: rgb(246, 246, 3);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    text-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}



.stat-label {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    transform: translateX(5px);
}


/* ================ Advanced Hero Image ================ */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-image:hover .image-wrapper {
    transform: rotateY(5deg) rotateX(5deg);
}

.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transform: translateZ(30px);
    transition: all 0.5s ease;
}

.hero-image:hover .image-frame {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3),
                0 15px 40px -15px rgba(0, 0, 0, 0.35);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.hero-image:hover .profile-img {
    transform: scale(1.05) translateZ(25px);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 33, 61, 0.6), transparent 60%);
    z-index: 1;
    transition: all 0.5s ease;
}

.hero-image:hover .image-overlay {
    background: linear-gradient(to top, rgba(20, 33, 61, 0.7), transparent 60%);
}

body.dark-mode .image-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent 60%);
}

body.dark-mode .hero-image:hover .image-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent 60%);
}

.image-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
}

.hero-image:hover .image-shine {
    opacity: 1;
}

/* Floating Tech Badges with 3D Effect */
.tech-badge-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    font-size: 2.4rem;
    color: var(--text-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    pointer-events: auto;
    transform-style: preserve-3d;
    will-change: transform;
}

body.dark-mode .tech-badge {
    background-color: var(--dark-bg-light);
    color: var(--dark-text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.tech-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateZ(20px);
    background-color: var(--text-color);
    color: var(--bg-light);
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    font-size: 1.3rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .tech-badge::after {
    background-color: var(--dark-text-color);
    color: var(--dark-bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-badge:hover {
    transform: translateY(-10px) scale(1.1) rotateY(15deg) translateZ(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
                inset 0 -3px 8px rgba(0, 0, 0, 0.1);
}

.tech-badge:hover::after {
    opacity: 1;
    margin-bottom: 1.5rem;
}

/* Individual badge positioning and styling */
.react {
    top: 10%;
    left: 10%;
    color: #61dafb;
    animation: float3D 6s ease-in-out infinite;
}

.node {
    top: 10%;
    right: 10%;
    color: #68a063;
    animation: float3D 6s ease-in-out infinite 1s;
}

.python {
    bottom: 10%;
    left: 10%;
    color: #3776ab;
    animation: float3D 6s ease-in-out infinite 2s;
}

.java {
    bottom: 10%;
    right: 10%;
    color: #007396;
    animation: float3D 6s ease-in-out infinite 3s;
}

.html {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #e34f26;
    animation: float3D 6s ease-in-out infinite 0.5s;
}

.css {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    color: #2965f1;
    animation: float3D 6s ease-in-out infinite 1.5s;
}

/* Social Links with 3D Effect */
.hero-social {
    position: absolute;
    right: 5%;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 10;
    transform-style: preserve-3d;
}

.social-link {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1),
                inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-color);
    font-size: 2rem;
    transform-style: preserve-3d;
    will-change: transform;
}

body.dark-mode .social-link {
    background-color: var(--dark-bg-light);
    color: var(--dark-text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
                inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.social-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateZ(20px);
    background-color: var(--text-color);
    color: var(--bg-light);
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    font-size: 1.4rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-right: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .social-tooltip {
    background-color: var(--dark-text-color);
    color: var(--dark-bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-5px) rotateY(15deg) translateZ(10px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3),
                inset 0 -3px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .social-link:hover {
    box-shadow: 0 15px 30px rgba(127, 149, 255, 0.3),
                inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    margin-right: 1.5rem;
}



/* ================ Animations ================ */
@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

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

@keyframes pulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

@keyframes scrollAnimation {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* ================ Responsive Design ================ */
@media (max-width: 1200px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 8rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        order: 1;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-social {
        right: auto;
        left: 50%;
        bottom: 5%;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    .social-tooltip {
        right: auto;
        bottom: 100%;
        top: auto;
        left: 50%;
        transform: translateX(-50%) translateZ(20px);
    }
    
    .social-link:hover .social-tooltip {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        order: 2;
    }
    
    .image-wrapper {
        width: 380px;
        height: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
    
    .title {
        font-size: 4.8rem;
    }
    
    .typewriter {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .hero-stats {
        gap: 3rem;
    }
    
    .image-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .tech-badge {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 10rem;
    }
    
    .title {
        font-size: 3.8rem;
    }
    
    .subtitle {
        font-size: 1.6rem;
    }
    
    .hero-text {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        padding-left: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

@media (max-width: 400px) {
    .title {
        font-size: 3.2rem;
    }
    
    .typewriter {
        font-size: 1.8rem;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .tech-badge {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}

/* ================ About Section ================ */
.about {
    background-color: var(--white);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
}

.section-title span {
    color: #007bff;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.decoration-line {
    width: 50px;
    height: 3px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.decoration-dot {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.about-image-container {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,123,255,0.2), rgba(0,0,0,0.1));
    z-index: 1;
}

.tech-stack {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.tech-icon {
    font-size: 1.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.tech-icon:hover {
    transform: scale(1.2);
    background: #007bff;
}

.tech-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.image-border-animation {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #007bff;
    border-radius: 25px;
    animation: border-glow 3s infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes border-glow {
    0% { border-color: #007bff; opacity: 0.3; }
    50% { border-color: #00c4ff; opacity: 0.6; }
    100% { border-color: #007bff; opacity: 0.3; }
}

.about-text {
    padding: 2rem;
}

.about-headline {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
}

.about-headline .text-gradient {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 1.5rem;
    color: #007bff;
}

.info-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #c8ff00;
}

.info-value {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.progress-container {
    margin: 2rem 0;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.progress-bar {
    background: #e9ecef;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: #007bff;
    height: 100%;
    transition: width 1s ease-in-out;
}

.about-cta {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-icon {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-headline {
        font-size: 2.2rem;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .about-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .about-headline {
        font-size: 1.8rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .about-image {
        border-radius: 10px;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-icon {
        font-size: 1.2rem;
    }
}

/* ================ Education Section ================ */
.education {
    background-color: var(--white);
    padding: 6rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-title span {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #b3d4fc;
    margin-bottom: 1.5rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #007bff, #00c4ff);
    border-radius: 2px;
}

.divider-icon {
    font-size: 1.5rem;
    color: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

.bg-particle {
    position: absolute;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.particle-1 { width: 50px; height: 50px; top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { width: 30px; height: 30px; top: 20%; right: 15%; animation-delay: 2s; }
.particle-3 { width: 40px; height: 40px; bottom: 25%; left: 20%; animation-delay: 4s; }
.particle-4 { width: 60px; height: 60px; bottom: 15%; right: 10%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    50% { transform: translateY(-20px); opacity: 0.4; }
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #e9ecef;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, #007bff, #00c4ff);
    position: relative;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: move-down 2s infinite;
}

@keyframes move-down {
    0% { top: 0; }
    50% { top: 50%; }
    100% { top: 0; }
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-item:hover .marker-dot {
    transform: scale(1.3);
}

.marker-pulse {
    width: 24px;
    height: 24px;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 1.5s infinite;
}

.marker-line {
    width: 4px;
    height: 100%;
    background: #007bff;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    flex: 1;
    padding-left: 2rem;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffee00;
    margin-bottom: 1rem;
}

.content-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-icon {
    position: relative;
    font-size: 1.8rem;
    color: #007bff;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid #007bff;
    border-radius: 50%;
    opacity: 0.3;
    animation: spin 10s infinite linear;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.university-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.card-body h4 {
    font-size: 1.4rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.education-details {
    display: grid;
    gap: 1rem;
}

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

.detail-icon {
    font-size: 1.2rem;
    color: #007bff;
}

.detail-content span {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.detail-content p {
    margin: 0;
    color: #4a4a4a;
    font-size: 1rem;
}

.gpa-meter, .percentage-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meter-track {
    width: 150px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(to right, #007bff, #00c4ff);
    transition: width 1s ease-in-out;
}

.meter-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.current-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 600;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.university-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.badge-container {
    position: relative;
    width: 80px;
    height: 80px;
    perspective: 1000px;
}

.badge-outer-ring, .badge-inner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #007bff;
    opacity: 0.3;
    animation: spin 15s infinite linear;
}

.badge-inner-ring {
    border: 2px dashed #00c4ff;
    animation-direction: reverse;
}

.badge-logo {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    transition: transform 0.5s ease;
}

.badge-container:hover .badge-logo {
    transform: translate(-50%, -50%) rotateY(360deg);
}

.badge-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-container:hover .badge-tooltip {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-container {
        max-width: 700px;
    }

    .university-badge {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .education {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .timeline-progress {
        left: 30px;
    }

    .timeline-content {
        padding-left: 3rem;
    }

    .content-card {
        padding: 1rem;
    }

    .card-header h3 {
        font-size: 1.6rem;
    }

    .card-body h4 {
        font-size: 1.2rem;
    }

    .meter-track {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .timeline-date {
        font-size: 1rem;
    }

    .content-card {
        border-radius: 10px;
    }

    .card-header h3 {
        font-size: 1.4rem;
    }

    .university-logo img {
        width: 40px;
        height: 40px;
    }

    .badge-container {
        width: 60px;
        height: 60px;
    }

    .badge-logo {
        width: 40px;
        height: 40px;
    }
}

/* ================ Skills Section ================ */
.skills {
    background-color: var(--white);
    padding: 8rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-title span {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #fbff00;
    margin-bottom: 2rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.divider-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #007bff, #00c4ff);
    border-radius: 3px;
}

.divider-icon {
    font-size: 2rem;
    color: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.skills-visual {
    position: relative;
}

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

.bg-particle {
    position: absolute;
    background: rgba(0, 123, 255, 0.25);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.particle-1 { width: 60px; height: 60px; top: 5%; left: 15%; animation-delay: 0s; }
.particle-2 { width: 40px; height: 40px; top: 25%; right: 10%; animation-delay: 1.5s; }
.particle-3 { width: 50px; height: 50px; bottom: 20%; left: 25%; animation-delay: 3s; }
.particle-4 { width: 70px; height: 70px; bottom: 10%; right: 15%; animation-delay: 4.5s; }
.particle-5 { width: 45px; height: 45px; top: 15%; left: 40%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-30px); opacity: 0.5; }
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.skills-category:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #007bff, #00c4ff);
    border-radius: 2px;
}

.skills-list {
    display: grid;
    gap: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.skill-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skill-item.active {
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 196, 255, 0.1));
    border: 1px solid #007bff;
}

.skill-icon {
    font-size: 2.5rem;
    color: #007bff;
    position: relative;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: rotate(360deg);
}

.skill-icon::before {
    position: relative;
    z-index: 2;
}

.skill-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #007bff;
    border-radius: 50%;
    opacity: 0.4;
    animation: spin 12s infinite linear;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.skill-info {
    flex: 1;
}

.skill-info span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.8rem;
}

.skill-bar {
    background: #e9ecef;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, #007bff, #00c4ff);
    transition: width 1.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%,Dosent exist 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.skill-percent {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.skills-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
}

.badge-container {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.badge-outer-ring, .badge-inner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #007bff;
    opacity: 0.4;
    animation: spin 18s infinite linear;
}

.badge-inner-ring {
    border: 3px dashed #00c4ff;
    animation-direction: reverse;
}

.badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    font-size: 2.5rem;
    color: #007bff;
    transition: transform 0.6s ease;
}

.badge-container:hover .badge-icon {
    transform: translate(-50%, -50%) rotateY(360deg);
}

.badge-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-container:hover .badge-tooltip {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .skill-info span {
        font-size: 1.1rem;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-icon::after {
        width: 40px;
        height: 40px;
    }

    .skills-badge {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-info span {
        font-size: 1rem;
    }

    .skill-icon {
        font-size: 1.8rem;
    }

    .skill-icon::after {
        width: 35px;
        height: 35px;
    }

    .badge-container {
        width: 80px;
        height: 80px;
    }

    .badge-icon {
        font-size: 2rem;
    }
}

/* ================ Projects Section ================ */
.projects {
    background-color: var(--white);
    padding: 8rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-title span {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #b3d4fc;
    margin-bottom: 2rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.divider-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #007bff, #00c4ff);
    border-radius: 3px;
}

.divider-icon {
    font-size: 2rem;
    color: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.projects-visual {
    position: relative;
}

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

.bg-particle {
    position: absolute;
    background: rgba(0, 123, 255, 0.25);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.particle-1 { width: 60px; height: 60px; top: 5%; left: 15%; animation-delay: 0s; }
.particle-2 { width: 40px; height: 40px; top: 25%; right: 10%; animation-delay: 1.5s; }
.particle-3 { width: 50px; height: 50px; bottom: 20%; left: 25%; animation-delay: 3s; }
.particle-4 { width: 70px; height: 70px; bottom: 10%; right: 15%; animation-delay: 4.5s; }
.particle-5 { width: 45px; height: 45px; top: 15%; left: 40%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-30px); opacity: 0.5; }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(0, 196, 255, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

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

.project-overlay h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 1rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-tech span {
    background: #1a1a1a;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-tech span:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0096cc);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.projects-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
}

.badge-container {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.badge-outer-ring, .badge-inner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #007bff;
    opacity: 0.4;
    animation: spin 18s infinite linear;
}

.badge-inner-ring {
    border: 3px dashed #00c4ff;
    animation-direction: reverse;
}

.badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    font-size: 2.5rem;
    color: #007bff;
    transition: transform 0.6s ease;
}

.badge-container:hover .badge-icon {
    transform: translate(-50%, -50%) rotateY(360deg);
}

.badge-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-container:hover .badge-tooltip {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 800px;
    }

    .projects-badge {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .project-image img {
        height: 200px;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    .project-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .project-card {
        border-radius: 15px;
    }

    .project-overlay h3 {
        font-size: 1.4rem;
    }

    .project-overlay p {
        font-size: 0.9rem;
    }

    .project-tech span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .badge-container {
        width: 80px;
        height: 80px;
    }

    .badge-icon {
        font-size: 2rem;
    }
}

/* ================ Certificates Section ================ */
.certificates {
    background-color: var(--white);
    padding: 8rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-title span {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #b3d4fc;
    margin-bottom: 2rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.divider-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #007bff, #00c4ff);
    border-radius: 3px;
}

.divider-icon {
    font-size: 2rem;
    color: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.certificates-visual {
    position: relative;
}

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

.bg-particle {
    position: absolute;
    background: rgba(0, 123, 255, 0.25);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.particle-1 { width: 60px; height: 60px; top: 5%; left: 15%; animation-delay: 0s; }
.particle-2 { width: 40px; height: 40px; top: 25%; right: 10%; animation-delay: 1.5s; }
.particle-3 { width: 50px; height: 50px; bottom: 20%; left: 25%; animation-delay: 3s; }
.particle-4 { width: 70px; height: 70px; bottom: 10%; right: 15%; animation-delay: 4.5s; }
.particle-5 { width: 45px; height: 45px; top: 15%; left: 40%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-30px); opacity: 0.5; }
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.certificate-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
}

.certificate-image {
    position: relative;
    overflow: hidden;
}

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

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

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(0, 196, 255, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

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

.certificate-overlay h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.certificate-overlay p {
    font-size: 1rem;
    color: #e9ecef;
}

.certificate-info {
    padding: 2rem;
}

.certificate-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.certificate-info p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0096cc);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.certificate-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
}

.badge-container {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.badge-outer-ring, .badge-inner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #007bff;
    opacity: 0.4;
    animation: spin 18s infinite linear;
}

.badge-inner-ring {
    border: 3px dashed #00c4ff;
    animation-direction: reverse;
}

.badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    font-size: 2.5rem;
    color: #007bff;
    transition: transform 0.6s ease;
}

.badge-container:hover .badge-icon {
    transform: translate(-50%, -50%) rotateY(360deg);
}

.badge-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-container:hover .badge-tooltip {
    opacity: 1;
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.certificate-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #007bff;
}

.modal-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.modal-details p {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.modal-details a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 800px;
    }

    .certificate-badge {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .certificates {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .certificate-image img {
        height: 200px;
    }

    .certificate-info h3 {
        font-size: 1.4rem;
    }

    .certificate-info p {
        font-size: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-details h3 {
        font-size: 1.6rem;
    }

    .modal-details p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .certificate-card {
        border-radius: 15px;
    }

    .certificate-overlay h3 {
        font-size: 1.4rem;
    }

    .certificate-overlay p {
        font-size: 0.9rem;
    }

    .btn-small {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .badge-container {
        width: 80px;
        height: 80px;
    }

    .badge-icon {
        font-size: 2rem;
    }

    .modal-content {
        max-width: 90%;
    }

    .modal-close {
        font-size: 1.5rem;
    }
}

/* ================ Contact Section ================ */
.contact {
    background-color: var(--white);
    padding: 8rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.section-title span {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #b3d4fc;
    margin-bottom: 2rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.divider-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #007bff, #00c4ff);
    border-radius: 3px;
}

.divider-icon {
    font-size: 2rem;
    color: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.contact-visual {
    position: relative;
}

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

.bg-particle {
    position: absolute;
    background: rgba(0, 123, 255, 0.25);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.particle-1 { width: 60px; height: 60px; top: 5%; left: 15%; animation-delay: 0s; }
.particle-2 { width: 40px; height: 40px; top: 25%; right: 10%; animation-delay: 1.5s; }
.particle-3 { width: 50px; height: 50px; bottom: 20%; left: 25%; animation-delay: 3s; }
.particle-4 { width: 70px; height: 70px; bottom: 10%; right: 15%; animation-delay: 4.5s; }
.particle-5 { width: 45px; height: 45px; top: 15%; left: 40%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.25; }
    50% { transform: translateY(-30px); opacity: 0.5; }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-info:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
}

.contact-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.08);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: scale(1.05);
}

.info-icon {
    font-size: 2rem;
    color: #007bff;
    position: relative;
}

.info-icon::before {
    position: relative;
    z-index: 2;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #007bff;
    border-radius: 50%;
    opacity: 0.4;
    animation: spin 12s infinite linear;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.info-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin: 0;
}

.info-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #0056b3;
}

.contact-form {
    padding: 2.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.25);
}

form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0);
    transition: box-shadow 0.3s ease;
}

.form-group input:focus + .input-glow,
.form-group textarea:focus + .input-glow {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0096cc);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.contact-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
}

.badge-container {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.badge-outer-ring, .badge-inner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #007bff;
    opacity: 0.4;
    animation: spin 18s infinite linear;
}

.badge-inner-ring {
    border: 3px dashed #00c4ff;
    animation-direction: reverse;
}

.badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    font-size: 2.5rem;
    color: #007bff;
    transition: transform 0.6s ease;
}

.badge-container:hover .badge-icon {
    transform: translate(-50%, -50%) rotateY(360deg);
}

.badge-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-container:hover .badge-tooltip {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-content {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .info-icon {
        font-size: 1.8rem;
    }

    .icon-ring {
        width: 40px;
        height: 40px;
    }

    .contact-badge {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-info, .contact-form {
        border-radius: 15px;
        padding: 1.5rem;
    }

    .info-content h4 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .badge-container {
        width: 80px;
        height: 80px;
    }

    .badge-icon {
        font-size: 2rem;
    }
}

/* ================ Footer Section ================ */
.footer {
    background-color: #1a1a1a;
    padding: 8rem 2rem 4rem;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-visual {
    position: relative;
}

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

.bg-particle {
    position: absolute;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

.particle-1 { width: 60px; height: 60px; top: 10%; left: 15%; animation-delay: 0s; }
.particle-2 { width: 50px; height: 50px; top: 30%; right: 10%; animation-delay: 1.5s; }
.particle-3 { width: 70px; height: 70px; bottom: 20%; left: 20%; animation-delay: 3s; }
.particle-4 { width: 55px; height: 55px; bottom: 15%; right: 25%; animation-delay: 4.5s; }
.particle-5 { width: 65px; height: 65px; top: 20%; left: 40%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-30px); opacity: 0.6; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo .logo {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo .logo:hover {
    transform: scale(1.1);
}

.footer-logo .logo span {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    font-size: 1.2rem;
    color: #b3d4fc;
    margin-top: 0.5rem;
}

.footer-bio h3,
.footer-contact h3,
.footer-newsletter h3,
.footer-social h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-bio p,
.footer-contact p,
.footer-newsletter p {
    font-size: 1.2rem;
    color: #b3d4fc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #007bff;
}

.contact-item a,
.contact-item span {
    font-size: 1.2rem;
    color: #b3d4fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.footer-newsletter form {
    display: grid;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    outline: none;
    background: #2c2c2c;
    color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0);
    transition: box-shadow 0.3s ease;
}

.form-group input:focus + .input-glow,
.form-group textarea:focus + .input-glow {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.footer-social .social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    font-size: 1.8rem;
    color: #b3d4fc;
    position: relative;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ffffff;
}

.social-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0);
    transition: box-shadow 0.3s ease;
}

.footer-social a:hover .social-glow {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 1.1rem;
    color: #b3d4fc;
    margin: 0;
}

.footer-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
}

.badge-container {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.badge-outer-ring, .badge-inner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #007bff;
    opacity: 0.4;
    animation: spin 15s infinite linear;
}

.badge-inner-ring {
    border: 3px dashed #00c4ff;
    animation-direction: reverse;
}

.badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    font-size: 2.5rem;
    color: #007bff;
    transition: transform 0.6s ease;
}

.badge-container:hover .badge-icon {
    transform: translate(-50%, -50%) rotateY(360deg);
}

.badge-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-container:hover .badge-tooltip {
    opacity: 1;
}

/* Contact Pop-Up */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.contact-popup.active {
    display: flex;
}

.popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    animation: popupFadeIn 0.5s ease;
}

@keyframes popupFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #007bff;
}

.popup-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.popup-content form {
    display: grid;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00c4ff);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0096cc);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 6rem 1.5rem 3rem;
    }

    .footer-logo .logo {
        font-size: 2.5rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }

    .footer-bio h3,
    .footer-contact h3,
    .footer-newsletter h3,
    .footer-social h3 {
        font-size: 2rem;
    }

    .footer-bio p,
    .footer-contact p,
    .footer-newsletter p {
        font-size: 1rem;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    .contact-item a,
    .contact-item span {
        font-size: 1rem;
    }

    .footer-social a {
        font-size: 1.5rem;
    }

    .social-glow {
        width: 40px;
        height: 40px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    .badge-container {
        width: 80px;
        height: 80px;
    }

    .badge-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-logo .logo {
        font-size: 2rem;
    }

    .logo-subtitle {
        font-size: 0.9rem;
    }

    .footer-bio h3,
    .footer-contact h3,
    .footer-newsletter h3,
    .footer-social h3 {
        font-size: 1.6rem;
    }

    .footer-bio p,
    .footer-contact p,
    .footer-newsletter p {
        font-size: 0.9rem;
    }

    .contact-item i {
        font-size: 1.2rem;
    }

    .contact-item a,
    .contact-item span {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .popup-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    .popup-content h3 {
        font-size: 1.6rem;
    }

    .popup-close {
        font-size: 1.5rem;
    }
}

/* ================ Back to Top ================ */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ================ Responsive Design ================ */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 5rem;
    }
    
    .hero-social {
        right: auto;
        left: 50%;
        bottom: 5%;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-cta {
        justify-content: center;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 8rem;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        padding: 3rem 0;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        display: block;
        text-align: center;
    }
    
    h1 {
        font-size: 4.8rem;
    }
    
    .title {
        font-size: 4.8rem;
    }
    
    .typewriter {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 3rem;
    }
    
    .timeline-date {
        left: 3rem;
        transform: translateX(0);
    }
    
    .timeline-content {
        width: calc(100% - 8rem);
        left: 8rem !important;
    }
    
    .timeline-content::before {
        left: -30px !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 3.6rem;
    }
    
    .title {
        font-size: 3.6rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

}