/* === GLOBAL STYLES === */
:root {
    /* Main Colors */
    --primary-color: #00e676;
    --secondary-color: #2C3E50;
    --bg-color: #0a0a0f;
    --bg-light: #15151d;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #333340;
    
    /* Accent Colors */
    --accent-green: #00e676;
    --accent-red: #f44336;
    --accent-blue: #2196F3;
    --accent-cyan: #00e5ff;
    
    /* Terminal Colors */
    --terminal-bg: #1E1E1E;
    --terminal-text: #E0E0E0;
    --terminal-green: #00e676;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00e676, #00c853);
    --gradient-dark: linear-gradient(135deg, #15151d, #0a0a0f);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 5px 15px rgba(0, 230, 118, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.95)), url('../images/cyber-bg.jpg') center/cover fixed;
    min-height: 100vh;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at top right, rgba(0, 230, 118, 0.05), transparent 70%),
        radial-gradient(circle at bottom left, rgba(0, 229, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, transparent 49.5%, rgba(0, 230, 118, 0.1) 49.5%, rgba(0, 230, 118, 0.1) 50.5%, transparent 50.5%),
        linear-gradient(to bottom, transparent 49.5%, rgba(0, 229, 255, 0.08) 49.5%, rgba(0, 229, 255, 0.08) 50.5%, transparent 50.5%);
    background-size: 40px 40px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Remove horizontal padding for train containers */
.project-train-container .container,
.cert-train-container .container,
.achievement-train-container .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.4);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header .section-description {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 15px;
    font-style: italic;
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    position: relative;
}

.underline::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    top: 0;
    left: 0;
    transform-origin: left;
    transform: scaleX(2);
    opacity: 0.3;
}

/* === HEADER & NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.logo:hover::before {
    transform: scale(1.2);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

.logo h1 a {
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover span::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--text-color);
}

/* === HERO SECTION === */
.hero {
    padding: 160px 0 80px;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    animation: glowing 3s infinite;
}

@keyframes glowing {
    0%, 100% { text-shadow: 0 0 5px rgba(0, 230, 118, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 230, 118, 0.8); }
}

.hero-text h2 {
    font-size: 24px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeInUp 0.8s 0.3s ease-out forwards;
    opacity: 0;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-muted);
    animation: fadeInUp 0.8s 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s 0.7s ease-out forwards;
    opacity: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-container {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(0, 230, 118, 0.8), rgba(0, 229, 255, 0.4));
    padding: 4px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(145deg, rgba(0, 230, 118, 0.8), rgba(0, 229, 255, 0.4));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.social-links i {
    font-size: 18px;
}

/* === ABOUT SECTION === */
.about {
    background-color: rgba(21, 21, 29, 0.4); /* More transparent background */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px); /* Add slight blur effect for depth */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1; /* Ensure proper stacking */
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Terminal styling */
.terminal {
    width: 100%;
    max-width: 700px;
    margin: 40px auto 0;
    background-color: var(--terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    font-family: 'Roboto Mono', monospace;
    position: relative;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}

.terminal:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    opacity: 0.7;
}

.terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        transparent 0px,
        rgba(0, 230, 118, 0.05) 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.terminal-header {
    background-color: #2a2a2a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.terminal-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.terminal:hover .terminal-dot::after {
    opacity: 1;
}

.terminal-dot.red {
    background-color: #ff5f56;
}

.terminal-dot.red::after {
    background-color: #ff372a;
}

.terminal-dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dot.yellow::after {
    background-color: #f0a500;
}

.terminal-dot.green {
    background-color: #27c93f;
}

.terminal-dot.green::after {
    background-color: #1aaa2a;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 25px;
    color: var(--terminal-text);
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.terminal-body p {
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInTerminal 0.6s forwards;
}

.terminal-body p:nth-child(1) { animation-delay: 0.2s; }
.terminal-body p:nth-child(2) { animation-delay: 0.7s; }
.terminal-body p:nth-child(3) { animation-delay: 1.2s; }
.terminal-body p:nth-child(4) { animation-delay: 1.7s; }
.terminal-body p:nth-child(5) { animation-delay: 2.2s; }
.terminal-body p:nth-child(6) { animation-delay: 2.7s; }
.terminal-body p:nth-child(7) { animation-delay: 3.2s; }
.terminal-body p:nth-child(8) { animation-delay: 3.7s; }
.terminal-body p:nth-child(9) { animation-delay: 4.2s; }

@keyframes fadeInTerminal {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command {
    color: var(--terminal-green);
    position: relative;
    padding-left: 15px;
}

.command::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.response {
    color: var(--text-color);
    padding-left: 25px;
    opacity: 0.85;
}

.blinking-cursor {
    animation: blink 1s infinite;
    margin-top: 10px;
    display: inline-block;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === SKILLS SECTION === */
.skills {
    background-color: rgba(10, 10, 15, 0.4); /* More transparent background */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1; /* Ensure proper stacking */
    padding: 80px 0;
    width: 100%;
}

.skills .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.skills-category {
    width: 100%;
    padding: 0;
    margin: 0;
}

.skills-category h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.skill-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    will-change: transform, box-shadow, border-color;
    backface-visibility: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    height: 100%;
}

.skills-grid:nth-child(odd) .skill-card:nth-child(1) { animation-delay: 0.1s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(2) { animation-delay: 0.2s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(3) { animation-delay: 0.3s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(4) { animation-delay: 0.4s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(5) { animation-delay: 0.5s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(6) { animation-delay: 0.6s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(7) { animation-delay: 0.7s; }
.skills-grid:nth-child(odd) .skill-card:nth-child(8) { animation-delay: 0.8s; }
.skills-grid:nth-child(even) .skill-card:nth-child(1) { animation-delay: 0.15s; }
.skills-grid:nth-child(even) .skill-card:nth-child(2) { animation-delay: 0.25s; }
.skills-grid:nth-child(even) .skill-card:nth-child(3) { animation-delay: 0.35s; }
.skills-grid:nth-child(even) .skill-card:nth-child(4) { animation-delay: 0.45s; }
.skills-grid:nth-child(even) .skill-card:nth-child(5) { animation-delay: 0.55s; }
.skills-grid:nth-child(even) .skill-card:nth-child(6) { animation-delay: 0.65s; }
.skills-grid:nth-child(even) .skill-card:nth-child(7) { animation-delay: 0.75s; }
.skills-grid:nth-child(even) .skill-card:nth-child(8) { animation-delay: 0.85s; }

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.2), 0 5px 15px rgba(0, 0, 0, 0.15);
}

.skill-card:hover::before {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
}

.skill-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 2s linear;
}

.skill-card:hover .skill-icon::before {
    opacity: 0.6;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

.skill-icon i {
    font-size: 30px;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon i {
    animation: pulse 2s infinite;
}

.skill-card h4 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.skill-card h4 span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 8px;
}

/* === PROJECTS SECTION === */
.projects {
    background-color: rgba(21, 21, 29, 0.4); /* More transparent background */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1; /* Ensure proper stacking */
}

.project-train-container {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 30px 0;
    left: 50%;
    transform: translateX(-50%);
}

.projects-content {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    width: max-content;
    padding: 20px 0;
    position: relative;
    left: 0;
    margin-left: 0;
    margin-right: 0;
}

.project-card {
    background-color: rgba(10, 10, 15, 0.8);
    border-radius: 15px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 350px;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 1;
    will-change: transform, opacity;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin: 0 5px; /* Add a bit more spacing between cards */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Deeper shadow for depth */
    backdrop-filter: blur(5px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-cyan));
    transition: height 0.5s ease;
    z-index: -1;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(0, 230, 118, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-card.new-project {
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.project-card:hover::before {
    height: 100%;
}

.project-card:hover::after {
    opacity: 1;
}

.project-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 229, 255, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transition: all 0.4s ease;
    transform: rotate(-5deg);
}

.project-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-icon {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 230, 118, 0.25);
}

.project-card:hover .project-icon::before {
    opacity: 0.6;
    animation: borderPulse 2s infinite alternate;
}

@keyframes borderPulse {
    from { opacity: 0.2; }
    to { opacity: 0.6; }
}

.project-icon i {
    font-size: 28px;
    transition: all 0.4s ease;
}

.project-card:hover .project-icon i {
    transform: scale(1.2);
    animation: iconFloat 2s ease infinite alternate;
}

@keyframes iconFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.project-card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    list-style-type: disc;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-tech span {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* === CERTIFICATIONS SECTION === */
.certifications {
    background-color: rgba(10, 10, 15, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1; /* Ensure proper stacking */
}

.cert-train-container {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 30px 0;
    left: 50%;
    transform: translateX(-50%);
}

.certifications-content {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    width: max-content;
    padding: 20px 0;
    position: relative;
    left: 0;
    margin-left: 0;
    margin-right: 0;
}

.cert-card {
    background-color: rgba(21, 21, 29, 0.8);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-width: 280px;
    max-width: 280px;
    margin: 0 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 1;
    backdrop-filter: blur(5px);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(0, 230, 118, 0.03) 100%);
    z-index: -1;
}

.cert-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 230, 118, 0.1), transparent 30%);
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.5s ease, transform 20s linear;
    z-index: -2;
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-color);
}

.cert-card:hover::after {
    opacity: 1;
    transform: rotate(360deg);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(0, 230, 118, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transform: rotate(-5deg);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-card:hover .cert-icon {
    transform: rotate(0deg) scale(1.1);
    background-color: rgba(0, 230, 118, 0.15);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.2);
    border-radius: 15px;
}

.cert-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.5s ease, border-radius 0.5s ease;
}

.cert-card:hover .cert-icon::before {
    opacity: 0.5;
    border-radius: 15px;
    animation: pulseBorder 1.5s infinite alternate;
}

@keyframes pulseBorder {
    0% { opacity: 0.2; }
    100% { opacity: 0.6; }
}

.cert-icon i {
    font-size: 30px;
    transition: all 0.4s ease;
}

.cert-card:hover .cert-icon i {
    transform: scale(1.2);
    animation: pulse 2s infinite alternate;
}

.cert-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.cert-card:hover h3 {
    color: var(--primary-color);
}

.cert-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.cert-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* === ACHIEVEMENTS SECTION === */
.achievements {
    background-color: rgba(21, 21, 29, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1; /* Ensure proper stacking */
}

.achievement-train-container {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 30px 0;
    left: 50%;
    transform: translateX(-50%);
}

.achievements-content {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    width: max-content;
    padding: 20px 0;
    position: relative;
    left: 0;
    margin-left: 0;
    margin-right: 0;
}

.achievement-card {
    background-color: rgba(10, 10, 15, 0.8);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 320px;
    max-width: 320px;
    margin: 0 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 1;
    backdrop-filter: blur(5px);
}

.achievement-card::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1), transparent 70%);
    top: -25%;
    left: -25%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.achievement-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.6s ease;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.achievement-card:hover::before {
    opacity: 1;
    animation: pulse 3s infinite;
}

.achievement-card:hover::after {
    width: 100%;
}

.achievement-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    background-color: rgba(0, 230, 118, 0.08);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transform: perspective(800px) rotateY(15deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    transition: all 0.5s ease;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(0, 230, 118, 0.3); }
    100% { box-shadow: 0 0 15px rgba(0, 230, 118, 0.7); }
}

.achievement-card:hover .achievement-icon {
    transform: perspective(800px) rotateY(0deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.2);
}

.achievement-card:hover .achievement-icon::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.achievement-icon i {
    font-size: 32px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.7));
}

.achievement-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.achievement-card:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.5);
}

.achievement-card h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.achievement-card:hover h3::after {
    width: 80%;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 15px;
    transition: all 0.3s ease;
}

/* === CONTACT SECTION === */
.contact {
    background-color: rgba(10, 10, 15, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1; /* Ensure proper stacking */
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 230, 118, 0.2);
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(5px);
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(10, 10, 15, 0.85);
    border-radius: 10px;
    padding: 20px;
    z-index: 10;
    max-width: 300px;
    border: 1px solid rgba(0, 230, 118, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInLeft 0.8s ease-out forwards;
}

.map-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 230, 118, 0.2);
    padding-bottom: 15px;
}

.map-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.map-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0.3;
}

.map-header h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

.map-details {
    color: var(--text-muted);
}

.map-details p {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.map-details i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.map-wrapper {
    position: relative;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), transparent 80%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
}

.map-wrapper iframe {
    filter: grayscale(70%) invert(92%) hue-rotate(180deg);
    border-radius: 15px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.contact-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 28px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-cyan));
    transition: height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.contact-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.contact-card:hover::before {
    height: 100%;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(0, 230, 118, 0.08), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotate(-5deg);
    flex-shrink: 0;
}

.contact-card:hover .contact-icon {
    transform: rotate(0) scale(1.15);
    background-color: rgba(0, 230, 118, 0.15);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.25);
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 20%, var(--accent-cyan));
    opacity: 0.2;
    z-index: -1;
    transition: all 0.4s ease, border-radius 0.4s ease;
}

.contact-card:hover .contact-icon::before {
    opacity: 0.5;
    border-radius: 50%;
}

.contact-icon i {
    font-size: 22px;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon i {
    transform: scale(1.2);
    animation: pulse 2s infinite;
}

.contact-details {
    flex-grow: 1;
}

.contact-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-details h3 {
    color: var(--primary-color);
}

.contact-details p, 
.contact-details a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-muted);
    font-size: 14px;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-form form {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 40px 35px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form form:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 230, 118, 0.1);
}

.contact-form form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 230, 118, 0.05), transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-form form:hover::before {
    opacity: 1;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Fix for text color */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input,
.form-group textarea,
.form-group input:focus,
.form-group textarea:focus,
.form-group input:active,
.form-group textarea:active {
    color: var(--text-color) !important;
}

.floating-label {
    pointer-events: none;
    font-size: 16px;
    z-index: 2;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(0, 230, 118, 0.5);
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: 0;
}

.form-group:focus-within::after {
    width: calc(100% - 30px);
}

.form-success-message .success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 34px;
    animation: pulse 2s infinite;
}

/* === FOOTER === */
footer {
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure proper stacking */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(0, 230, 118, 0.05), transparent 50%),
                radial-gradient(circle at top left, rgba(0, 229, 255, 0.05), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.footer-top {
    background-color: rgba(15, 15, 20, 0.8);
    padding: 70px 0 50px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-info h3 span {
    color: var(--primary-color);
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.footer-contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-newsletter h3::after, .footer-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}

.footer-links ul {
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul li a i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links ul li a:hover i {
    transform: translateX(3px);
}

.social-links-large {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links-large a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.social-links-large a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.3);
}

.social-links-large a i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links-large a:hover i {
    color: #fff;
    transform: scale(1.2);
}

.footer-bottom {
    background-color: rgba(10, 10, 15, 0.95);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.footer-bottom p i {
    color: #ff5e62;
    margin: 0 3px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        margin-top: 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px 15px;
    }
    
    .skill-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .skill-card h4 {
        font-size: 16px;
    }
    
    .skill-card h4 span {
        font-size: 13px;
        margin-top: 5px;
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Train animations adjustments for mobile */
    .project-card, .cert-card, .achievement-card {
        min-width: 260px;
        max-width: 260px;
        padding: 25px 20px;
    }
    
    .projects-content {
        animation: projectTrain 60s linear infinite; /* Slower animation on mobile */
        gap: 20px; /* Smaller gap for mobile */
    }
    
    .certifications-content {
        animation: certTrain 50s linear infinite; /* Slower animation on mobile */
        gap: 20px; /* Smaller gap for mobile */
    }
    
    .achievements-content {
        animation: achievementTrain 70s linear infinite; /* Slower animation on mobile */
        gap: 20px; /* Smaller gap for mobile */
    }
    
    .project-train-container, .cert-train-container, .achievement-train-container {
        margin: 20px 0;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        overflow: hidden;
    }
    
    /* Ensure containers have no padding on mobile */
    .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after, 
    .footer-newsletter h3::after, 
    .footer-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-info p {
        justify-content: center;
    }
    
    .footer-links ul li a {
        justify-content: center;
    }
    
    .social-links-large {
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 576px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 25px 15px;
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .map-container {
        margin-bottom: 30px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .map-wrapper {
        height: 300px;
        min-height: 300px;
    }
    
    /* Small screens train adjustments */
    .project-card, .cert-card, .achievement-card {
        min-width: 230px;
        max-width: 230px;
        padding: 20px 15px;
    }
    
    .cert-card h3, .achievement-card h3 {
        font-size: 16px;
    }
    
    .achievement-card p {
        font-size: 13px;
    }
}