/* Reset and Base Styles */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --accent-color: #818cf8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    /* Theme agnostic variables */
    --heading-color: #2d3748;
    --text-secondary: #4a5568;
    --card-bg: #ffffff;
    --border-light: #edf2f7;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --progress-bg: #edf2f7;
    --percentage-bg: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #6366f1;
    --accent-color: #4f46e5;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #111827;
    --bg-light: #1f2937;
    --bg-dark: #030712;
    --border-color: #374151;
    
    /* Dark theme specific */
    --heading-color: #f7fafc;
    --text-secondary: #cbd5e0;
    --card-bg: #1a202c;
    --border-light: #2d3748;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --progress-bg: #2d3748;
    --percentage-bg: rgba(255, 255, 255, 0.1);
}

/* Dark theme specific styles */
[data-theme="dark"] .animated-background {
    background: var(--bg-dark);
}

[data-theme="dark"] .particle {
    background: var(--primary-color);
    opacity: 0.2;
    box-shadow: 0 0 10px var(--primary-color);
}

[data-theme="dark"] .wave {
    opacity: 0.15;
}

[data-theme="dark"] .glow-orb {
    opacity: 0.2;
    filter: blur(50px);
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .timeline-content {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar {
    background-color: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] footer {
    background-color: rgba(3, 7, 18, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-item i {
    background-color: rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .social-icons a,
[data-theme="dark"] .social-links a {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-icons a:hover,
[data-theme="dark"] .social-links a:hover {
    background-color: rgba(129, 140, 248, 0.1);
    border-color: var(--primary-color);
}

[data-theme="dark"] .primary-btn {
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .primary-btn:hover {
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .secondary-btn {
    border-color: var(--primary-color);
}

[data-theme="dark"] .secondary-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

[data-theme="dark"] .tech-tag {
    background: rgba(129, 140, 248, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .tech-tag:hover {
    background: rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .timeline::before {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--primary-color);
}

[data-theme="dark"] .timeline-year {
    background: var(--gradient-primary);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .progress-bar {
    background: var(--progress-bg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(17, 24, 39, 0.8);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--bg-light);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--primary-color) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

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

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.secondary-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.8s;
    animation-fill-mode: both;
}

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

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, var(--primary-color) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--card-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

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

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    animation: progressAnimation 2s ease-out;
}

/* Individual progress bar colors */
.html-progress { background: linear-gradient(90deg, #e34c26, #ff6b4a); }
.css-progress { background: linear-gradient(90deg, #264de4, #5f7ef2); }
.js-progress { background: linear-gradient(90deg, #f0db4f, #f7e36c); }
.php-progress { background: linear-gradient(90deg, #0a30ef, #a4f10a); }
.mysql-progress { background: linear-gradient(90deg, #cc0f9d, #c1008ac5); }
.laravel-progress { background: linear-gradient(90deg, #d52e2e, #ff4f4f); }
.python-progress { background: linear-gradient(90deg, #0632e3, #0e7ce3); }
.excel-progress { background: linear-gradient(90deg, #9511e7, #752bc4); }
.git-progress { background: linear-gradient(90deg, #099a93, #11a8b3); }
.sheets-progress { background: linear-gradient(90deg, #099a17, #2bc43b); }
.bootstrap-progress { background: linear-gradient(90deg, #e114c6, #ba2bc4); }

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    position: relative;
    background: transparent;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

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

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--percentage-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.project-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: auto;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Experience Section */
.experience {
    padding: 8rem 0;
    position: relative;
    background: transparent;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-year {
    position: absolute;
    top: 0;
    right: -3rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(even) .timeline-year {
    right: auto;
    left: -3rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-light);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
    border-right: none;
    border-left: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-top: none;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    position: relative;
    background: transparent;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-light);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border-radius: 8px;
}

.map-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-light);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--primary-color) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

footer p {
    color: white !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 40%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; top: 60%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; top: 80%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; top: 10%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; top: 30%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; top: 70%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; top: 90%; animation-delay: -16s; }
.particle:nth-child(10) { left: 15%; top: 85%; animation-delay: -18s; }

/* Waves */
.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%234f46e5' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1440px 100px;
    animation: waveMove 20s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: waveMove 15s linear infinite reverse;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.2;
    animation: waveMove 10s linear infinite;
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: orbFloat 15s infinite ease-in-out;
}

.glow-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    top: 60%;
    left: 70%;
    animation-delay: -5s;
}

.glow-orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-100px) translateX(50px) rotate(90deg);
    }
    50% {
        transform: translateY(-200px) translateX(0) rotate(180deg);
    }
    75% {
        transform: translateY(-100px) translateX(-50px) rotate(270deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, -50px);
    }
    50% {
        transform: translate(0, -100px);
    }
    75% {
        transform: translate(-50px, -50px);
    }
}

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

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 300px;
    }
}

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

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        padding-left: 2rem;
    }

    .timeline-year {
        left: -2rem;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-year {
        left: -2rem;
    }

    .timeline-content::before {
        left: -10px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

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

    .tagline {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem !important;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .skill-info i {
        font-size: 1.5rem;
    }

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

    .percentage {
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* AOS Animation Styles */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s, transform 0.6s;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Compact Skills Categories */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

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

.category-header h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin: 0;
}

.category-skills {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    width: 100%;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.skill-name i {
    width: 20px;
    color: var(--primary-color);
}

.skill-level {
    float: right;
    font-weight: 600;
    color: var(--primary-color);
}

.skill-item .progress-bar {
    height: 6px;
    background: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.skill-item .progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category-card {
        padding: 1.2rem;
    }
}

/* Design 2: Interactive Accordion */
.certifications.design-2 {
    padding: 8rem 0;
}

.accordion-grid {
    max-width: 900px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    padding: 1.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.accordion-header:hover {
    background: linear-gradient(90deg, var(--percentage-bg), transparent);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.provider-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px var(--shadow-color));
}

.provider-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.provider-tag {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cert-count {
    background: var(--percentage-bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.header-stats i {
    transition: transform 0.3s;
}

.accordion-toggle:checked ~ .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--percentage-bg);
}

.accordion-toggle:checked ~ .accordion-content {
    max-height: 500px;
}

.certs-timeline {
    padding: 2rem;
    position: relative;
}

.certs-timeline::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 2.1rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--primary-color);
    animation: pulse 2s infinite;
}

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

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

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

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.view-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}


/* Enhanced Design 3: Interactive Tabs */
.certifications.enhanced-design-3 {
    padding: 8rem 0;
}

.cert-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.cert-tabs input[type="radio"] {
    display: none;
}

.tab-label {
    padding: 0.8rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#tab-all:checked ~ .tabs-content [data-category],
#tab-tech:checked ~ .tabs-content [data-category*="tech"],
#tab-data:checked ~ .tabs-content [data-category*="data"],
#tab-events:checked ~ .tabs-content [data-category*="events"],
#tab-courses:checked ~ .tabs-content [data-category*="courses"] {
    display: block;
}

#tab-all:checked ~ .tabs-content [data-category] {
    animation: fadeIn 0.5s;
}

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

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

.cert-card-modern {
    display: none;
    height: 350px;
    perspective: 1000px;
}

.card-inner-modern {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.cert-card-modern:hover .card-inner-modern {
    transform: rotateY(180deg);
}

.card-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-side.front {
    text-align: center;
}

.card-media {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.media-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cert-card-modern:hover .media-shine {
    transform: translateX(100%);
}

.card-side h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.meta-tag {
    padding: 0.3rem 1rem;
    background: var(--percentage-bg);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.card-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.view-more-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.card-side.back {
    transform: rotateY(180deg);
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.card-side.back h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-side.back ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.card-side.back li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.card-side.back li i {
    color: white;
}

.cert-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.cert-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tabs-content {
        grid-template-columns: 1fr;
    }
    
    .cert-tabs {
        flex-direction: column;
        align-items: stretch;
        padding: 0 2rem;
    }
    
    .tab-label {
        text-align: center;
    }
}
/* Certifications Section - Standard Professional Format */
.certifications {
    padding: 6rem 0;
    background: transparent;
}

.certifications .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
}

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

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
    height: fit-content;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-color);
    border-color: var(--primary-color);
}

.cert-header {
    padding: 1.2rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--percentage-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.cert-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    margin: 0;
}

.cert-badge {
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.cert-body {
    padding: 1.2rem 1.5rem;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li i {
    font-size: 0.9rem;
    min-width: 18px;
    color: var(--primary-color);
}

.cert-list li span {
    flex: 1;
    color: var(--text-secondary);
}

.cert-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: transform 0.3s;
    white-space: nowrap;
}

.cert-link:hover {
    transform: translateX(3px);
    text-decoration: underline;
}

/* Dark theme adjustments */
[data-theme="dark"] .cert-card {
    background: var(--card-bg);
}

[data-theme="dark"] .cert-header {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 992px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-header {
        padding: 1rem;
    }
    
    .cert-body {
        padding: 1rem;
    }
    
    .cert-list li {
        font-size: 0.85rem;
    }
}
/* Optional animation for cert cards */
.cert-card {
    animation: cardFadeIn 0.6s ease-out forwards;
}

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