/* CSS Variables for Theme Support */
:root {
    /* Futuristic Dark Theme Colors */
    --primary-color: #00e6e6;
    --primary-dark: #00cccc;
    --secondary-color: #00ffff;
    --accent-color: #00e6e6;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-primary: #0f1115;
    --bg-secondary: #1a1d24;
    --bg-tertiary: #2a2d35;
    --border-color: #2a2d35;
    --shadow-light: 0 1px 3px rgba(0, 230, 230, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 230, 230, 0.15);
    --shadow-heavy: 0 10px 25px rgba(0, 230, 230, 0.2);
    --gradient-primary: linear-gradient(135deg, #0f1115 0%, #1a1d24 50%, #2a2d35 100%);
    --gradient-secondary: linear-gradient(135deg, #00e6e6 0%, #00ffff 100%);
    --gradient-hero: linear-gradient(135deg, #0a0c10 0%, #1a1d24 50%, #2a2d35 100%);
    --gradient-accent: linear-gradient(135deg, #00e6e6 0%, #00ffff 50%, #00e6e6 100%);
}

/* Light Theme Colors (for theme toggle) */
[data-theme="light"] {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

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

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

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 29, 36, 0.95);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Hide certifications nav link on small screens */
.nav-link[href="#certifications"] {
    display: none;
}

/* Show certifications nav link only on larger screens */
@media (min-width: 1024px) {
    .nav-link[href="#certifications"] {
        display: inline-block;
    }
}

/* Ensure navbar text is visible in both themes */
[data-theme="light"] .nav-link {
    color: #1f2937;
}

[data-theme="dark"] .nav-link {
    color: #ffffff;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Ensure hamburger menu bars are visible in both themes */
[data-theme="light"] .bar {
    background: #1f2937;
}

[data-theme="dark"] .bar {
    background: #ffffff;
}

.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(0, 230, 230, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 230, 230, 0.2);
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.profile-image {
    margin-bottom: 2rem;
}

/* 3D Photo Card Styles */
.photo-3d-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
}

.photo-3d-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    animation: float3d 6s ease-in-out infinite;
}

.photo-3d-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    animation: shadow3d 6s ease-in-out infinite;
}

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

@keyframes shadow3d {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.2;
    }
    50% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.2;
    }
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(0, 230, 230, 0.5);
    object-fit: cover;
    box-shadow: 0 0 25px rgba(0, 230, 230, 0.4);
    transition: all 0.3s ease;
    transform: translateZ(20px);
    position: relative;
    z-index: 2;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 230, 230, 0.6);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 230, 230, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.typing-container {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    min-height: 1.5em;
}

.typing-text {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 230, 230, 0.4);
}

.cursor {
    animation: blink 1s infinite;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 230, 230, 0.4);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.3);
}

.btn-secondary:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

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

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

.about-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 230, 230, 0.3);
    transition: all 0.3s ease;
    transform: translateZ(20px);
    position: relative;
    z-index: 2;
}

/* About page 3D photo specific styles */
.about-photo-3d .photo-3d-inner {
    animation: float3d-about 8s ease-in-out infinite;
}

.about-photo-3d .photo-3d-shadow {
    width: 90%;
    height: 25px;
    animation: shadow3d-about 8s ease-in-out infinite;
}

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

@keyframes shadow3d-about {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateX(-50%) scale(0.7);
        opacity: 0.2;
    }
    50% {
        transform: translateX(-50%) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-50%) scale(0.7);
        opacity: 0.2;
    }
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 230, 230, 0.5);
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 230, 230, 0.3);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

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

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

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

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.tech-tag:hover{
    box-shadow: 2px 2px 3px 3px gray;
    color: cyan;
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-content {
    display: grid;
    gap: 3rem;
}

.skills-category h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.skill-item {
    border-radius: 30px;
    box-shadow: 2px 2px 3px 3px gray;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    /* border-radius: 8px; */
    /* box-shadow: var(--shadow-light); */
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.3);
}

.skill-info {
    flex: 1;
}

.skill-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.4);
}

/* Resume Section */
.resume-content {
    display: grid;
    gap: 3rem;
}

.resume-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

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

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
}

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

.timeline-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.resume-download {
    text-align: center;
    margin-top: 3rem;
}



/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Footer Background Effects */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 230, 230, 0.05) 0%, 
        rgba(0, 255, 255, 0.03) 50%, 
        rgba(0, 230, 230, 0.05) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

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

.floating-shapes-footer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: floatFooter 6s ease-in-out infinite;
}

.footer-shape.shape-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.footer-shape.shape-2 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.footer-shape.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.footer-shape.shape-4 {
    width: 30px;
    height: 30px;
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes floatFooter {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Footer Logo Section */
.footer-logo {
    margin-bottom: 1rem;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.footer-title {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 230, 230, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Footer Headings */
.footer-heading {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-footer {
    position: relative;
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.social-link-footer::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.social-link-footer::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-link-footer:hover::before,
.social-link-footer:hover::after {
    opacity: 1;
    visibility: visible;
}

.social-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link-footer:hover {
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 230, 230, 0.3);
}

.social-link-footer:hover .social-hover {
    transform: scale(1);
}

.social-link-footer i {
    position: relative;
    z-index: 2;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 15px;
}

.footer-link:hover::before {
    opacity: 1;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.contact-item-footer:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-item-footer i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.8rem;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    flex: 1;
    max-width: 100px;
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    animation: iconPulse 2s ease-in-out infinite;
}

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

.copyright {
    color: var(--text-light);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    /* Footer mobile optimizations */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links li {
        margin-bottom: 0.4rem;
    }
    
    .footer-contact {
        gap: 0.4rem;
    }
    
    .contact-item-footer {
        font-size: 0.8rem;
    }
    
    .social-link-footer {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
    
    .footer-divider {
        margin-bottom: 0.8rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Hide certifications link on small screens */


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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

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

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .about-img {
        width: 250px;
        height: 250px;
    }

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}





/* Services Section */
.services {
    background: var(--bg-primary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

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

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

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

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.service-price {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
}

.price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* New unique service badges */
.service-unique {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.unique-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite alternate;
}

.unique-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.services-cta {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 230, 230, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive design for services section */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .services-cta {
        padding: 2rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}

/* Certifications Section */
.certifications {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    display: none; /* Hidden by default on small screens */
}

/* Show certifications only on larger screens */
@media (min-width: 1024px) {
    .certifications {
        display: block;
    }
}

.cert-book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.cert-book {
    position: relative;
    width: 400px;
    height: 500px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.8s ease;
    transform: rotateY(0deg);
    z-index: 10;
    transform-style: preserve-3d;
}

.book-cover:hover {
    transform: rotateY(-10deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cover-front, .cover-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backface-visibility: hidden;
}

.cover-front {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    transform: rotateY(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
    padding: 20px;
}

.cover-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cover-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cover-decoration {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.cover-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.cover-back {
    background: #FFF;
    transform: rotateY(180deg);
    box-shadow: 0 0 10px 10px greenyellow;
    position: relative;
    overflow: hidden;
    background-image: url(Core\ java.png);
    background-size: cover;
}

/* Cover images container */
.cover-images-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cover-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 10px;
}

.cover-image.active {
    opacity: 1;
}

.cover-image:hover {
    transform: scale(1.02);
}







/* Left and Right Pages */
.left-page, .right-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFF;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.8s ease;
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.left-page {
    transform: translateX(-100%);
    z-index: 5;
    box-shadow: 0 0 10px 10px cyan;
    background-image: url(My\ sql.png);
    background-size: cover;
}

.right-page {
    transform: translateX(100%);
    z-index: 5;
    box-shadow: 0 0 10px 10px cyan;
    background-image: url(webdevelopment.png);
    background-size: cover;
}

.left-page img, .right-page img, .cert-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-image {
    display: block;
    margin: 0 auto;
}

.cert-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Book opened state */
.cert-book.opened .book-cover {
    transform: rotateY(-180deg);
    z-index: 1;
    pointer-events: none;
}

.cert-book.opened .left-page {
    transform: translateX(-110%);
    opacity: 1;
    pointer-events: auto;
}

.cert-book.opened .right-page {
    transform: translateX(110%);
    opacity: 1;
    pointer-events: auto;
}
