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

:root {
    --primary-color: #00d9ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --primary-color: #0099cc;
    --secondary-color: #ff5252;
    --accent-color: #00897b;
    --bg-dark: #f5f5f5;
    --bg-darker: #ffffff;
    --bg-light: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme navbar */
body.light-theme .navbar {
    /*background: rgba(255, 255, 255, 0.95);*/
    background: rgb(255, 255, 255,0.32);
    border-bottom: 1px solid rgba(131, 154, 162, 0.2);
}

/* Light theme cards and sections */
body.light-theme .project-card,
body.light-theme .blog-card,
body.light-theme .service-card,
body.light-theme .hobby-card,
body.light-theme .achievement-card,
body.light-theme .certificate-card,
body.light-theme .skill-category,
body.light-theme .tool-category {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 153, 204, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.light-theme .project-card:hover,
body.light-theme .blog-card:hover,
body.light-theme .service-card:hover,
body.light-theme .hobby-card:hover,
body.light-theme .achievement-card:hover,
body.light-theme .certificate-card:hover {
    box-shadow: 0 10px 30px rgba(0, 153, 204, 0.2);
}

/* Light theme form */
body.light-theme .contact-form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 153, 204, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: rgba(248, 248, 248, 0.8);
    border: 2px solid rgba(0, 153, 204, 0.3);
    color: var(--text-primary);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 153, 204, 0.2);
}

/* Tech Background Canvas */
#techBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* Light theme canvas - more subtle */
body.light-theme #techBackground {
    opacity: 0.1;
    filter: brightness(1.5) contrast(0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.32);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 217, 255, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--primary-color),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
    animation: rotate 2s linear infinite;
}

.theme-toggle:hover::before {
    opacity: 0.3;
}

.theme-toggle:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.theme-toggle i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.theme-toggle:hover i {
    transform: rotate(20deg) scale(1.1);
}

/* Light theme adjustments */
body.light-theme .theme-toggle {
    background: rgba(0, 153, 204, 0.1);
    border-color: rgba(0, 153, 204, 0.3);
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 153, 204, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 153, 204, 0.3);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo svg {
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.3));
}

.logo a:hover svg {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.6));
}

.social-icons-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

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

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.home-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    margin: 0 auto;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 0;
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.profile-3d-container {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: float3d 6s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    25% {
        transform: translateY(-15px) rotateY(5deg);
    }
    50% {
        transform: translateY(-10px) rotateY(-5deg);
    }
    75% {
        transform: translateY(-20px) rotateY(3deg);
    }
}

.profile-3d-container:hover {
    transform: rotateY(15deg) rotateX(-10deg) scale(1.05);
    animation-play-state: paused;
}

.profile-container {
    margin-bottom: 3rem;
}

.profile-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0;
    transform-style: preserve-3d;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 
        0 0 40px rgba(0, 217, 255, 0.4),
        0 0 80px rgba(0, 217, 255, 0.2),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 2;
    filter: brightness(1.1) contrast(1.05);
}

.profile-3d-container:hover .profile-image {
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.6),
        0 0 120px rgba(0, 217, 255, 0.3),
        inset 0 0 50px rgba(0, 217, 255, 0.2);
    border-width: 6px;
    filter: brightness(1.2) contrast(1.1);
}

.profile-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-color);
    border-radius: 50%;
    animation: rotate3d 8s linear infinite;
    opacity: 0.6;
    z-index: 1;
    transform: translateZ(50px);
}

@keyframes rotate3d {
    from { 
        transform: translateZ(50px) rotate(0deg);
    }
    to { 
        transform: translateZ(50px) rotate(360deg);
    }
}

.profile-3d-container:hover .profile-ring {
    animation: rotate3d 3s linear infinite;
    opacity: 0.9;
    border-width: 4px;
}

.profile-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(0, 217, 255, 0.4) 0%,
        rgba(78, 205, 196, 0.2) 30%,
        transparent 70%
    );
    animation: pulse3d 4s ease-in-out infinite;
    z-index: 0;
    transform: translateZ(-30px);
}

@keyframes pulse3d {
    0%, 100% { 
        opacity: 0.6;
        transform: translateZ(-30px) scale(1);
        filter: blur(20px);
    }
    50% { 
        opacity: 1;
        transform: translateZ(-30px) scale(1.1);
        filter: blur(30px);
    }
}

.profile-3d-container:hover .profile-glow {
    animation: pulse3d 2s ease-in-out infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.float-item {
    position: absolute;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 217, 255, 0.15);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 20px rgba(0, 217, 255, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    animation: float3dItem 8s ease-in-out infinite;
    transition: all 0.4s ease;
}

@keyframes float3dItem {
    0%, 100% {
        transform: translateY(0px) translateZ(80px) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) translateZ(100px) rotate(5deg);
    }
    50% {
        transform: translateY(-15px) translateZ(90px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) translateZ(110px) rotate(3deg);
    }
}

.profile-3d-container:hover .float-item {
    transform: scale(1.2) translateZ(120px) !important;
    box-shadow: 
        0 12px 30px rgba(0, 217, 255, 0.5),
        inset 0 2px 15px rgba(255, 255, 255, 0.2);
}

.float-1 {
    top: 10%;
    left: -20%;
    animation-delay: 0s;
}

.float-2 {
    top: 30%;
    right: -20%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 30%;
    left: -20%;
    animation-delay: 4s;
}

.float-4 {
    bottom: 10%;
    right: -20%;
    animation-delay: 6s;
}

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

.intro-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 2px); }
    92% { transform: translate(2px, -2px); }
    93% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
}

.typing-container {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.static-text {
    color: var(--secondary-color);
}

.typing-text {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    min-width: 120px;
    text-align: left;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* About Words Section */
.about-words {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.word-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(0, 217, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 10px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255,0.75);
}

/* Light theme word items */
body.light-theme .word-item {
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid var(--primary-color);
    border: 1px solid rgba(0, 153, 204, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.word-item:hover {
    background: rgba(0, 217, 255, 0.15);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    border-left-width: 5px;
    border-color: var(--primary-color);
}

.word-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 35px;
    margin-top: 0.2rem;
    transition: var(--transition);
}

.word-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color);
}

.word-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
    transition: var(--transition);
}

.word-item:hover h3 {
    color: var(--primary-color);
}

.word-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    transition: var(--transition);
}

.word-item:hover p {
    color: var(--text-primary);
}

.word-item div {
    flex: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--primary-color);
    animation: scroll 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* Sections */
section {
    padding: 80px 2rem;
}

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

/* =========================================
   FUTURISTIC SECTION TITLES WITH DIVIDERS
========================================= */

.section-title {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 4rem;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  animation: pulseGlow 2.5s infinite ease-in-out;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Horizontal glow lines before & after the text */
body.light-theme .section-title {
  color: #006699;
  
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, transparent, #00d9ff, transparent);
  animation: glowPulse 2.3s infinite ease-in-out;
  opacity: 0.6;
}

/* Light theme divider lines */
body.light-theme .section-title::before,
body.light-theme .section-title::after {
  background: linear-gradient(to right, transparent, #006699, transparent);
  opacity: 0.1;
  /*box-shadow: 0 0 10px rgba(0, 153, 204, 0.02);*/
}

.section-title::before {
  margin-right: 1rem;
}
.section-title::after {
  margin-left: 1rem;
}

/* Icon inside title */
.section-title i {
  font-size: 3.0rem;
  color: #00d9ff;
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.7);
  animation: pulseGlow 2.5s infinite ease-in-out;
  
  transition: transform 0.4s ease;
}

/* Light theme icon */
body.light-theme .section-title i {
  color: #006699;               /* deep, saturated blue for clarity */
  text-shadow: none !important; /* remove glow blur completely */
  filter: none !important;      /* disable any blending effects */
  animation: none !important;   /* stop glowing animation */
  opacity: 1;
  transform: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  animation: pulseLightFlat 2.5s infinite ease-in-out;
  animation-play-state: running;
}

/* Hover effect (no blur, just scale + color change) */
.section-title:hover i {
  opacity: 1 !important;
  animation: none !important;   /* stop pulse animation */
  transform: scale(1.1) rotate(10deg) !important;
}


body.light-theme .section-title:hover i {
  color: #006699 !important;    /* slightly brighter blue on hover */
  text-shadow: none !important; /* no glow blur */
  filter: none !important;
  opacity: 1 !important;
  animation: none !important;   /* stop pulse animation */
  transform: scale(1.1) rotate(10deg) !important;
}


/* ✨ Animated Divider Below Title */
.section-divider {
  width: 180px;
  height: 3px;
  margin: 1.2rem auto 3rem;
  border-radius: 50px;
  background: linear-gradient(90deg, transparent, #00d9ff, transparent);
  animation: glowPulse 3s infinite ease-in-out;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Light theme divider */
body.light-theme .section-divider {
  background: linear-gradient(90deg, transparent, #0099cc, transparent);
  box-shadow: 0 0 15px rgba(0, 153, 204, 0.04);
}

/* Glow animations */
@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 0.5px #00d9ff, 0 0 20px #00d9ff;
  }
  50% {
    text-shadow: 0 0 0.7px #00ffff, 0 0 40px #00ffff;
  }
}

.section-title {
  animation: pulseLightFlat 2.5s infinite ease-in-out;
}

.section-title i {
  animation: pulseLightFlat 2.5s infinite ease-in-out;
}


/* Light theme pulse animation - removed to prevent blur */
body.light-theme .section-title {
  animation: pulseLightFlat 2.5s infinite ease-in-out;
}

body.light-theme .section-title i {
  animation: pulseLightFlat 2.5s infinite ease-in-out;
}

@keyframes pulseLightFlat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes pulseLightGlow {
  0%, 100% {
    text-shadow: 0 2px 4px rgba(0, 102, 153, 0.3), 0 0 3px rgba(0, 153, 204, 0.2);
  }
  50% {
    text-shadow: 0 2px 6px rgba(0, 102, 153, 0.4), 0 0 4px rgba(0, 153, 204, 0.3);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 5px #00d9ff, 0 0 20px #00d9ff;
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 10px #00ffff, 0 0 50px #00ffff;
    opacity: 1;
  }
}



/* About Me Section */
.about-me-section {
    background: transparent;
    position: relative;
    z-index: 2;
    text-align: justify;
    
}

.about-me-content-full {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 5vw; /* optional for breathing space */
    text-align: justify;
}

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

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

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
    transition: var(--transition);
}

.about-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.3);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: var(--transition);
    border-radius: 20px;
}

.about-image-wrapper:hover .about-overlay {
    opacity: 1;
}

.about-me-content {
    padding: 2rem 0;
}

.about-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Resume Download Section */
.resume-download-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Light theme resume section */
body.light-theme .resume-download-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 153, 204, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.resume-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.resume-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

.resume-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

/* Light theme resume button */
body.light-theme .resume-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 153, 204, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.resume-btn:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.resume-btn i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.resume-btn:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.resume-btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.resume-btn-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.resume-btn-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.resume-btn:hover .resume-btn-title {
    color: var(--primary-color);
}

/* Work Experience Section */
.work-experience-section {
    margin: 3rem 0;
}

.experience-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1000px; /* wider layout */
    margin: 0 auto;
    padding: 2rem 0;
}

/* Sleeker glowing central line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px; /* thinner line */
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 217, 255, 0.9), rgba(78, 205, 196, 0.7));
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5); /* glow effect */
    border-radius: 2px;
    opacity: 0.8;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

/* Dots */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    z-index: 1;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.8); /* brighter glow */
}

/* Cards */
.timeline-content {
    width: 48%;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 15, 0.85);
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.67);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    min-height: 220px;
}

/* Light theme timeline content */
body.light-theme .timeline-content {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 153, 204, 0.67);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* Hover Effect */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.35);
    border-color: var(--primary-color);
}

/* Date Badge */
.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Job Title */
.timeline-content h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

/* Company Info */
.company-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.company-name i {
    color: var(--primary-color);
}

/* Bullet Points */
.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline::before {
        left: 10px;
        transform: none;
    }

    .timeline-item {
        justify-content: flex-start;
    }

    .timeline-content {
        width: 90%;
        margin-left: 2rem !important;
    }

    .timeline-dot {
        left: 0;
        transform: none;
    }
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(10, 10, 15, 0.85);
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.67);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

/* Light theme stat items */
body.light-theme .stat-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 153, 204, 0.67);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
    background: rgba(10, 10, 15, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    border-color: var(--primary-color);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Skills & Tools Section */
.skills-section {
    background: transparent;
    position: relative;
    z-index: 2;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: -1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.skill-category {
    background: rgba(10, 10, 15, 0.85);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 217, 255, 0.67);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3);
    border-color: var(--primary-color);
    background: rgba(10, 10, 15, 0.95);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-group h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group h4 i {
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: default;
    backdrop-filter: blur(5px);
}

.skill-tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 217, 255, 0.12);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.soft-skill-item:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateX(10px);
    border-left-width: 5px;
}

.soft-skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.soft-skill-item span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

/* Tools Section */
.tools-section-wrapper {
    margin-top: 5rem;
}

.tools-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-category {
    background: rgba(10, 10, 15, 0.85);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.67);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tool-category:hover {
    background: rgba(10, 10, 15, 0.95);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.tool-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.tool-category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tool-category-header h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tool-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: rgba(0, 217, 255, 0.12);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.tool-item:hover {
    background: rgba(0, 217, 255, 0.2);
    color: var(--text-primary);
    transform: translateX(5px);
}

.tool-item i {
    font-size: 0.4rem;
    color: var(--primary-color);
}

/* Projects Section */
.projects-section {
    background: var(--bg-darker);
}

/* Services Section */
.services-section {
    background: transparent;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(10, 10, 15, 0.85);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 217, 255, 0.58);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
    border-color: var(--primary-color);
    background: rgba(10, 10, 15, 0.95);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1) rotateY(360deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 217, 255, 0.58);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
    border: 1px solid rgba(0, 217, 255, 1.5);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 217, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.project-link:hover {
    transform: scale(1.2);
}

.project-info {
    padding: 2rem;
    text-align: center;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
    
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--bg-light);
    
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 217, 255, 0.58);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
    border: 1px solid rgba(0, 217, 255, 1.5);
}

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

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

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

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 1rem;
}

/* Hobby Section */
.hobby-section {
    background: transparent;
    position: relative;
    z-index: 2;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.hobby-card {
    background: rgba(10, 10, 15, 0.85);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 217, 255, 0.58);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-align: center;
}

.hobby-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
    border-color: var(--primary-color);
    background: rgba(10, 10, 15, 0.95);
}

.hobby-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.hobby-card:hover .hobby-icon {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(78, 205, 196, 0.2));
    transform: scale(1.1) rotateY(360deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.hobby-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.hobby-card:hover .hobby-icon i {
    color: var(--accent-color);
}

.hobby-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hobby-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.hobby-card:hover p {
    color: var(--text-primary);
}

/* Achievement Section */
.achievement-section {
    background: transparent;
    position: relative;
    z-index: 2;
    overflow: hidden;
    
}

.achievement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
        
    pointer-events: none;
}

@keyframes bgPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.achievement-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
        
    pointer-events: none;
}

@keyframes moveLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Subsections */
.achievement-subsection,
.certificates-subsection {
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.subsection-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

/* Light theme subsection title */
body.light-theme .subsection-title {
    color: #006699;
    text-shadow: 0 2px 4px rgba(0, 102, 153, 0.2);
}

.subsection-title::before,
.subsection-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    max-width: 150px;
}

/* Light theme subsection dividers */
body.light-theme .subsection-title::before,
body.light-theme .subsection-title::after {
    background: linear-gradient(to right, transparent, #0099cc, transparent);
    opacity: 0.8;
}

.subsection-title i {
    font-size: 2.5rem;
    animation: iconBounce 2s ease-in-out infinite;
}

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

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.achievement-card {
    background: rgba(10, 10, 15, 0.85);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.58);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.achievement-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 217, 255, 0.4);
    border-color: var(--primary-color);
}

.achievement-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(78, 205, 196, 0.1));
}

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

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

.achievement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 217, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.achievement-overlay i {
    font-size: 4rem;
    color: var(--bg-dark);
    animation: bounceIn 0.6s;
    display: none;
}

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

.achievement-content {
    padding: 2rem;
}

.achievement-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.achievement-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-date i {
    color: var(--primary-color);
}

.achievement-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.achievement-card:hover .achievement-content p {
    color: var(--text-primary);
}

/* ========================================================================
   AWESOME CERTIFICATE SECTION STYLES - Premium Design
   Replace the old certificate styles with this in your styles.css
   ======================================================================== */

/* ===== CERTIFICATES SECTION ===== */
.certificates-subsection {
    margin-top: 8rem;
}

.certificates-main-title {
    margin-top: 4rem;
}

/* ===== CERTIFICATES GRID ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

/* ===== CERTIFICATE CARD - PREMIUM STYLE ===== */
.certificate-card {
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.95), rgba(26, 26, 46, 0.9));
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 217, 255, 0.58);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: certificateFadeIn 0.8s ease-out forwards;
    opacity: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes certificateFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.certificate-card:nth-child(1) { animation-delay: 0.1s; }
.certificate-card:nth-child(2) { animation-delay: 0.2s; }
.certificate-card:nth-child(3) { animation-delay: 0.3s; }
.certificate-card:nth-child(4) { animation-delay: 0.4s; }
.certificate-card:nth-child(5) { animation-delay: 0.5s; }
.certificate-card:nth-child(6) { animation-delay: 0.6s; }

/* Animated border on hover */
.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: borderRotate 3s linear infinite;
    transition: opacity 0.5s;
}

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

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

.certificate-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 217, 255, 0.3);
    border-color: var(--primary-color);
    
}

/* ===== VERIFIED RIBBON ===== */
.certificate-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 0.4rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    z-index: 10;
}

.certificate-ribbon::before,
.certificate-ribbon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.certificate-ribbon::before {
    top: 100%;
    left: 0;
    border-width: 0 10px 10px 0;
    border-color: transparent #15803d transparent transparent;
}

.certificate-ribbon span {
    position: relative;
    z-index: 1;
}

/* ===== GLOWING BACKGROUND EFFECT ===== */
.certificate-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s;
    pointer-events: none;
}

.certificate-card:hover .certificate-glow {
    opacity: 1;
    width: 250px;
    height: 250px;
}

/* ===== CERTIFICATE ICON WRAPPER ===== */
.certificate-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

.certificate-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(78, 205, 196, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
    border: 3px solid rgba(0, 217, 255, 0.4);
    transform-style: preserve-3d;
}

.certificate-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--primary-color) 25%,
        transparent 50%,
        var(--accent-color) 75%,
        transparent 100%
    );
    opacity: 0;
    animation: iconRotate 3s linear infinite;
    transition: opacity 0.5s;
}

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

.certificate-card:hover .certificate-icon::before {
    opacity: 0.6;
}

.certificate-card:hover .certificate-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 
        0 0 50px rgba(0, 217, 255, 0.6),
        inset 0 0 30px rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
}

.certificate-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.5s;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.6));
    position: relative;
    z-index: 1;
}

.certificate-card:hover .certificate-icon i {
    color: #ffffff;
    transform: scale(1.2);
    filter: drop-shadow(0 0 25px rgba(0, 217, 255, 0.9));
}

/* ===== FLOATING PARTICLES ===== */
.certificate-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.certificate-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px var(--primary-color);
}

.certificate-particles span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: particleFloat 3s ease-in-out infinite;
}

.certificate-particles span:nth-child(2) {
    top: 20%;
    right: 20%;
    animation: particleFloat 3s ease-in-out infinite 0.5s;
}

.certificate-particles span:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation: particleFloat 3s ease-in-out infinite 1s;
}

.certificate-particles span:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation: particleFloat 3s ease-in-out infinite 1.5s;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.5);
    }
}

.certificate-card:hover .certificate-particles span {
    animation-play-state: running;
}

/* ===== CERTIFICATE CONTENT ===== */
.certificate-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.certificate-content h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s;
}

.certificate-card:hover .certificate-content h4 {
    color: var(--primary-color);
    transform: scale(1.03);
}

.certificate-issuer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.certificate-issuer i {
    color: var(--primary-color);
    font-size: 1rem;
}

.certificate-card:hover .certificate-issuer {
    color: var(--text-primary);
}

/* ===== CERTIFICATE META INFO ===== */
.certificate-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.certificate-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
}

.certificate-date i {
    color: var(--primary-color);
}

.certificate-card:hover .certificate-date {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.certificate-level {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.3));
    border-radius: 20px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s;
}

.certificate-card:hover .certificate-level {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.4));
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ===== VERIFY BUTTON - ULTRA PREMIUM ===== */
.verify-btn {
    display: inline-block;
    position: relative;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(78, 205, 196, 0.15));
    border: 2px solid rgba(0, 217, 255, 0.4);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.btn-content i {
    transition: all 0.4s;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s;
}

.verify-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.verify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
    border-color: var(--primary-color);
    color: var(--bg-dark);
}

.verify-btn:hover::before {
    width: 300px;
    height: 300px;
}

.verify-btn:hover .btn-shine {
    left: 100%;
}

.verify-btn:hover .btn-content i {
    transform: rotate(360deg) scale(1.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificate-card {
        padding: 2rem;
    }

    .certificate-icon {
        width: 80px;
        height: 80px;
    }

    .certificate-icon i {
        font-size: 2rem;
    }

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

    .certificate-ribbon {
        font-size: 0.7rem;
        padding: 0.3rem 2rem;
        right: -30px;
    }

    .certificate-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .verify-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .certificate-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .certificate-icon {
        width: 70px;
        height: 70px;
    }

    .certificate-icon i {
        font-size: 1.8rem;
    }

    .certificate-content h4 {
        font-size: 1rem;
    }

    .certificate-issuer {
        font-size: 0.85rem;
    }

    .verify-btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }

    .certificate-ribbon {
        font-size: 0.65rem;
        padding: 0.25rem 1.5rem;
    }
}


/* Contact Section */
.contact-section {
    background: var(--bg-darker);
}

.contact-content-centered {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-info-centered {
    text-align: center;
    width: 100%;
}

.contact-info-centered h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info-centered p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

/* Light theme contact icons */
body.light-theme .contact-item i {
    background: rgba(0, 153, 204, 0.15);
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.2);
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: transparent;
    position: relative;
    z-index: 10;
    padding: 6rem 0;
}

.contact-content-centered {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Info Side */
.contact-info-centered {
    text-align: left;
    width: 100%;
}

.contact-info-centered h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info-centered p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}
/* === Fade + Slide Animation === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form with Animations */
.contact-form {
    background: rgba(10, 10, 15, 0.4);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced glass morphism effect on hover */
.contact-form:hover {
    background: rgba(10, 10, 15, 0.5);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 217, 255, 0.29),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Animated background effect */
.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 217, 255, 0.4) 0%,
        rgba(78, 205, 196, 0.1) 30%,
        transparent 60%
    );
    animation: formPulse 8s ease-in-out infinite;
    pointer-events: none;
}

/* Subtle grid pattern overlay */
.contact-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes formPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 1;
    }
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.4);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glowing border animation on focus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(10, 10, 15, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        0 0 40px rgba(0, 217, 255, 0.1),
        inset 0 0 10px rgba(0, 217, 255, 0.05);
    transform: translateY(-2px);
}

/* Animated typing effect */
.form-group input:focus,
.form-group textarea:focus {
    animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 217, 255, 0.3),
            0 0 40px rgba(0, 217, 255, 0.1),
            inset 0 0 10px rgba(0, 217, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(0, 217, 255, 0.4),
            0 0 50px rgba(0, 217, 255, 0.2),
            inset 0 0 15px rgba(0, 217, 255, 0.1);
    }
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
    z-index: 2;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--bg-light);
    padding: 0 0.5rem;
    font-weight: 600;
    transform: scale(1.05);
}

/* Textarea specific animations */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group textarea:focus {
    min-height: 150px;
}

/* Submit Button Container - CENTERED */
.form-submit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.btn-submit {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated shine effect */
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s;
}

.btn-submit:hover::before {
    left: 100%;
}

/* Ripple effect on click */
.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:active::after {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 217, 255, 0.4),
        0 0 50px rgba(0, 217, 255, 0.2);
}

.btn-submit i {
    transition: transform 0.4s;
    display: inline-block;
}

.btn-submit:hover i {
    transform: translateX(5px);
    animation: paperPlane 1s ease-in-out infinite;
}

@keyframes paperPlane {
    0%, 100% {
        transform: translateX(5px) translateY(0);
    }
    50% {
        transform: translateX(10px) translateY(-3px);
    }
}

/* Success state animation */
.btn-submit.success {
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
    animation: successPulse 0.6s ease;
}

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

/* Loading state */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading i {
    animation: rotate360 1s linear infinite;
}

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


/* Footer Styling */
.footer {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(0, 217, 255, 0.3);
    text-align: center;
    padding: 2rem 0;
}

/* Light theme footer */
body.light-theme .footer {
    background: rgba(240, 240, 245, 0.95);
    border-top: 1px solid rgba(0, 153, 204, 0.3);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* =========================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ========================================= */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
        
    }

    .nav-menu {
        gap: 2rem;
        
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-section {
        order: -1;
    }

    .about-section {
        text-align: center;
    }

    .intro-text h1 {
        text-align: center;
    }

    .subtitle {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hobby-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 1rem;
    }

    .nav-left {
        gap: 1rem;
    }

    .logo svg {
        width: 40px;
        height: 40px;
    }

    .social-icons-nav {
        display: flex;
        gap: 0.8rem;
        align-items: center;
    }

    .nav-social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 217, 255, 0.2);
    }

    /* Light theme mobile menu */
    body.light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        border-top: 1px solid rgba(0, 153, 204, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Home Section */
    section {
        padding: 60px 1rem;
    }

    .home-section {
        padding-top: 100px;
        min-height: auto;
    }

    .home-grid {
        gap: 2rem;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    .typing-container {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .about-words {
        gap: 1rem;
    }

    .word-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .word-item i {
        font-size: 1.5rem;
        margin-top: 0;
    }

    .word-item h3 {
        font-size: 1rem;
    }

    .word-item p {
        font-size: 0.85rem;
    }

    .profile-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .float-item {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .section-title i {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* About Me Section */
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .resume-download-section {
        padding: 2rem 1.5rem;
    }

    .resume-buttons {
        grid-template-columns: 1fr;
    }

    .resume-btn {
        padding: 1.2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 0.8rem;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .subsection-title i {
        font-size: 2rem;
    }

    /* Skills Section */
    .skill-category {
        padding: 2rem 1.5rem;
    }

    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-header h3 {
        font-size: 1.5rem;
    }

    .soft-skill-item {
        padding: 0.8rem 1rem;
    }

    .soft-skill-item span {
        font-size: 0.9rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-category {
        padding: 1.5rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }

    .project-info {
        padding: 1.5rem;
    }

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

    .project-tags {
        gap: 0.4rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-image {
        height: 220px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .blog-category {
        top: 15px;
        left: 15px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Hobby Section */
    .hobby-grid {
        grid-template-columns: 1fr;
    }

    .hobby-card {
        padding: 2rem 1.5rem;
    }

    .hobby-icon {
        width: 80px;
        height: 80px;
    }

    .hobby-icon i {
        font-size: 2.5rem;
    }

    /* Achievement Section */
    .achievement-image {
        height: 240px;
    }

    .achievement-content {
        padding: 1.5rem;
    }

    .achievement-content h3 {
        font-size: 1.3rem;
    }

    /* Contact Section */
    .contact-content-centered {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info-centered {
        text-align: center;
    }

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

    .contact-details {
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-submit-container {
        width: 100%;
    }

    .btn-submit {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 2rem;
        max-width: 100%;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-links a {
        margin: 0.3rem;
        font-size: 0.9rem;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
        justify-content: space-between;
    }

    .nav-left {
        flex: 1;
        gap: 0.6rem;
        max-width: 70%;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }

    .social-icons-nav {
        gap: 0.5rem;
    }

    .nav-social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .intro-text h1 {
        font-size: 1.7rem;
    }

    .typing-container {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .profile-image-wrapper {
        width: 240px;
        height: 240px;
    }

    .word-item h3 {
        font-size: 0.95rem;
    }

    .word-item p {
        font-size: 0.8rem;
    }

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

    .section-title i {
        font-size: 2rem;
    }

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

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .resume-btn {
        flex-direction: column;
        text-align: center;
    }

    .resume-btn i {
        font-size: 2rem;
    }

    .skill-category {
        padding: 1.5rem 1rem;
    }

    .category-header h3 {
        font-size: 1.3rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .project-info h3,
    .blog-content h3,
    .achievement-content h3 {
        font-size: 1.2rem;
    }

    .hobby-card h3 {
        font-size: 1.3rem;
    }

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

    .contact-form {
        padding: 1.5rem 1rem;
    }

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

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

    .form-submit-container {
        margin-top: 1.5rem;
    }

    .btn-submit {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
        width: 100%;
    }

    .btn-submit i {
        font-size: 0.9rem;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .home-section {
        min-height: auto;
        padding: 80px 1rem 40px;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .intro-text h1 {
        font-size: 1.5rem;
    }

    .typing-container {
        font-size: 1rem;
    }

    .about-words {
        display: none;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices (360px and below) */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.6rem 0.5rem;
    }

    .nav-left {
        gap: 0.4rem;
        max-width: 65%;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .social-icons-nav {
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .nav-social-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .hamburger {
        width: 22px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
}

