/* ========== CSS VARIABLES FOR CONSISTENT THEMING ========== */
:root {
    /* Color Palette - Dark Mode (Default) */
    --primary-color: #5D89EE;
    --secondary-color: #2cabc8;
    --accent-color: #FF6B6B;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --info-color: #2196F3;

    /* Background Colors - Dark */
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-tertiary: #2D2D2D;
    --bg-card: #1E1E1E;
    --bg-overlay: rgba(0, 0, 0, 0.8);

    /* Text Colors - Dark */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-tertiary: #888888;
    --text-muted: #666666;

    /* Border & Shadow Colors - Dark */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-dark: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.5);

    /* Icon Colors - Dark */
    --icon-primary: #FFFFFF;
    --icon-secondary: #B0B0B0;
    --icon-accent: var(--primary-color);

    /* Input Colors - Dark */
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-text: #FFFFFF;
    --input-placeholder: #888888;

    /* Status Colors */
    --error-color: #F44336;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --info-color: #2196F3;

    /* Gradient Definitions */
    --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #FF8E53 100%);
    --gradient-success: linear-gradient(135deg, var(--success-color) 0%, #45a049 100%);
    --gradient-card: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);

    /* Design Tokens */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --box-shadow: 0 10px 30px var(--shadow-color);
    --box-shadow-light: 0 5px 15px var(--shadow-light);
    --box-shadow-dark: 0 15px 40px var(--shadow-dark);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;

    /* Typography */
    --font-primary: cursive, "Baloo 2", "Poppins", sans-serif;
    --font-secondary: "Baloo 2", cursive;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

/* Light Mode Variables */
[data-theme="light"] {
    /* Background Colors - Light */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.9);

    /* Text Colors - Light */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;

    /* Border & Shadow Colors - Light */
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --border-dark: rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.2);

    /* Icon Colors - Light */
    --icon-primary: #2d3748;
    --icon-secondary: #4a5568;
    --icon-accent: var(--primary-color);

    /* Input Colors - Light */
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-border: rgba(0, 0, 0, 0.1);
    --input-text: #1a1a1a;
    --input-placeholder: #6b7280;

    /* Gradient Definitions - Light */
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* ========== BASE STYLES & RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Selection Colors */
::selection {
    background: var(--primary-color);
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
    text-shadow: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ========== TYPOGRAPHY & TEXT STYLES ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h3 {
    font-size: 2rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

h5 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

h6 {
    font-size: 1rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.small {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.muted {
    color: var(--text-muted) !important;
}

/* ========== TEXT ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ========== ANIMATED TEXT CLASSES ========== */
.animated-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animated-delay-1 {
    animation-delay: 0.2s;
}

.animated-delay-2 {
    animation-delay: 0.4s;
}

.animated-delay-3 {
    animation-delay: 0.6s;
}

.animated-delay-4 {
    animation-delay: 0.8s;
}

.animated-delay-5 {
    animation-delay: 1s;
}

/* ========== LAYOUT COMPONENTS ========== */
.main-container {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--space-xl);
}

section {
    padding: var(--space-3xl) var(--space-xl);
    min-height: auto;
    position: relative;
}

/* ========== NAVIGATION BAR STYLES ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: var(--transition);
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo */
.nav-brand .brand-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-brand span {
    color: var(--primary-color);
    margin-left: var(--space-xs);
}

.nav-brand .brand-link:hover {
    transform: translateY(-2px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-2xl);
}

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

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

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

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

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

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

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}

/* Contact Button */
.contact-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-dark);
    border-color: var(--primary-color);
}

.contact-btn a {
    text-decoration: none;
    font-weight: 600;
    color: white;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

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

/* ========== HERO SECTION STYLES ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding-top: 5rem;
}

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

.intro {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.4s;
}

.title-line:nth-child(2) {
    animation-delay: 0.6s;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* Button Container */
.btn-container {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn-container a {
    text-decoration: none;
    color: white;
}

.btn {
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 54px;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-dark);
    border-color: var(--primary-color);
}

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

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: fadeInRight 1s ease 0.5s forwards;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    padding: 5px;
    background: var(--bg-card);
    box-shadow: var(--box-shadow);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.profile-img:hover {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(93, 137, 238, 0.6),
        0 0 30px rgba(93, 137, 238, 0.4),
        0 0 40px rgba(93, 137, 238, 0.2);
    transform: scale(1.05);
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--border-color);
}

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

.shape-2 {
    width: 80px;
    height: 80px;
    bottom: 30px;
    right: -30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 50px;
    animation-delay: 4s;
}

/* Social Icons */
.home-social-icons {
    position: absolute;
    right: var(--space-xl);
    top: 20%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 10;
    opacity: 0;
    animation: fadeInRight 0.8s ease 1.2s forwards;
}

.social-link {
    color: var(--icon-primary);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    text-decoration: none;
    box-shadow: var(--box-shadow-light);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

/* ========== SECTION COMMON STYLES ========== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

/* ========== ABOUT SECTION STYLES ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.about-description:nth-child(1) {
    animation-delay: 0.2s;
}

.about-description:nth-child(2) {
    animation-delay: 0.4s;
}

/* ========== SKILLS SECTION STYLES ========== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    width: 100%;
}

.skill-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.skill-name {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.skill-level {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: var(--space-md);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* ========== PROJECTS SECTION STYLES ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    flex-shrink: 0;
}

.project-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project-tag {
    background: rgba(93, 137, 238, 0.1);
    color: var(--primary-color);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(93, 137, 238, 0.3);
    transition: var(--transition);
}

.project-tag:hover {
    background: rgba(93, 137, 238, 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex: 1;
    justify-content: center;
    font-weight: 500;
}

.project-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.project-link i {
    color: inherit;
    transition: var(--transition);
}

/* ========== ACHIEVEMENTS SECTION STYLES ========== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    width: 100%;
    margin-bottom: var(--space-3xl);
}

.achievement-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: bounceIn 0.6s ease forwards;
}

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

.achievement-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.8rem;
    color: white;
    border: 2px solid var(--border-color);
}

.achievement-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* ========== CERTIFICATES SECTION STYLES ========== */
.certificates-section {
    margin-top: var(--space-3xl);
}

.certificates-title {
    font-size: 2rem;
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.certificates-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.certificate-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-dark);
    border-color: var(--primary-color);
}

.certificate-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
    color: white;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.certificate-content {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.certificate-name {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 600;
}

.certificate-issuer {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.certificate-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.certificate-date,
.certificate-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.certificate-date::before {
    content: '📅';
}

.certificate-duration::before {
    content: '⏱️';
}

.certificate-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    font-size: 0.95rem;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.skill-tag {
    background: rgba(93, 137, 238, 0.1);
    color: var(--primary-color);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(93, 137, 238, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(93, 137, 238, 0.2);
    transform: translateY(-2px);
}

.certificate-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.certificate-btn {
    flex: 1;
    padding: var(--space-md) var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    min-height: 44px;
}

.view-btn {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid rgba(93, 137, 238, 0.3);
}

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

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

.verify-btn:hover {
    background: var(--gradient-success);
    color: white;
    border-color: var(--success-color);
    transform: translateY(-2px);
}

/* ========== CONTACT SECTION STYLES ========== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    max-width: 500px;
}

.contact-subtitle {
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    opacity: 0;
    animation: fadeInLeft 0.8s ease 0.2s forwards;
}

.contact-details {
    margin-bottom: var(--space-2xl);
}

.contact-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInLeft 0.6s ease forwards;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-weight: 600;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInLeft 0.8s ease 0.4s forwards;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-light);
}

.social-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInRight 0.8s ease 0.2s forwards;
}

.form-group {
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.3s;
}

.form-group:nth-child(2) {
    animation-delay: 0.4s;
}

.form-group:nth-child(3) {
    animation-delay: 0.5s;
}

.form-group:nth-child(4) {
    animation-delay: 0.6s;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    color: var(--input-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--input-placeholder);
}

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

.form-feedback {
    font-size: 0.8rem;
    margin-top: var(--space-sm);
    min-height: 1rem;
    color: var(--error-color);
    opacity: 0;
    transition: var(--transition);
}

.form-feedback.show {
    opacity: 1;
    animation: shake 0.5s ease;
}

.form-btn {
    width: 100%;
    margin-top: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.7s forwards;
    position: relative;
}

.btn-text {
    display: block;
}

.btn-loading {
    display: none;
}

.form-btn.loading .btn-text {
    display: none;
}

.form-btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-btn.success {
    background: var(--gradient-success);
}

/* ========== CUSTOM CERTIFICATE MODAL STYLES ========== */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow-dark);
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    transform-origin: center;
}

@keyframes certificateGlow {

    0%,
    100% {
        box-shadow: var(--box-shadow);
    }

    50% {
        box-shadow: 0 15px 40px rgba(93, 137, 238, 0.4);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

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

.modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-content {
    padding: var(--space-xl);
    animation: contentSlideIn 0.5s ease-out 0.2s both;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-view {
    margin-bottom: var(--space-xl);
    perspective: 1000px;
}

.certificate-frame {
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: certificateGlow 3s ease-in-out infinite, certificateFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

[data-theme="light"] .certificate-frame {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

@keyframes certificateFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-5px) rotate(0.5deg);
    }

    66% {
        transform: translateY(3px) rotate(-0.5deg);
    }
}

.certificate-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%231a1a1a"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

[data-theme="light"] .certificate-frame::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000000"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.certificate-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    animation: headerSlideIn 0.6s ease-out 0.3s both;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2rem;
    color: white;
    border: 3px solid var(--border-light);
    animation: logoSpin 1s ease-out 0.4s both;
}

@keyframes logoSpin {
    from {
        transform: scale(0) rotate(-180deg);
    }

    to {
        transform: scale(1) rotate(0);
    }
}

.certificate-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    text-shadow: 0 2px 4px var(--shadow-light);
}

.certificate-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.certificate-body {
    text-align: center;
    margin-bottom: var(--space-xl);
    animation: bodySlideIn 0.6s ease-out 0.5s both;
}

@keyframes bodySlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipient-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    text-shadow: 0 2px 4px var(--shadow-light);
    animation: namePulse 2s ease-in-out 0.7s infinite alternate;
}

@keyframes namePulse {
    from {
        text-shadow: 0 2px 4px var(--shadow-light);
    }

    to {
        text-shadow: 0 4px 8px rgba(93, 137, 238, 0.4);
    }
}

.certificate-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: detailsSlideIn 0.6s ease-out 0.7s both;
}

@keyframes detailsSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.detail-item:hover {
    transform: translateY(-5px);
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    animation: footerSlideIn 0.6s ease-out 0.9s both;
}

@keyframes footerSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signature-section {
    text-align: center;
    flex: 1;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto var(--space-sm);
    position: relative;
}

.signature-line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 3px;
}

.signature-name {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-style: italic;
}

.certificate-id {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: actionsSlideIn 0.6s ease-out 1.1s both;
}

@keyframes actionsSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-btn,
.close-modal-btn {
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.download-btn::before,
.close-modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.download-btn:hover::before,
.close-modal-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Certificate achievement badge */
.certificate-achievement {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: achievementPulse 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes achievementPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Certificate seal */
.certificate-seal {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 2px solid var(--border-light);
    animation: sealRotate 10s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Success animation for download */
@keyframes downloadSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.download-btn.success {
    animation: downloadSuccess 0.6s ease;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0 var(--space-md);
    margin-top: var(--space-3xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .brand-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-md);
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* ========== NOTIFICATION STYLES ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 400px;
    animation: slideInRight 0.5s ease, slideOutRight 0.5s ease 4s forwards;
    backdrop-filter: blur(10px);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--accent-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: 4px;
    transition: var(--transition);
    margin-left: auto;
}

.notification-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========== RESPONSIVE DESIGN BREAKPOINTS ========== */

/* Large Desktop */
@media screen and (min-width: 1400px) {

    .section-container,
    .nav-container,
    .hero-container,
    .footer-container {
        max-width: 1320px;
    }
}

/* Tablet Styles (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

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

    .image-container {
        width: 350px;
        height: 350px;
    }

    .home-social-icons {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

/* Tablet Styles (max-width: 968px) */
@media screen and (max-width: 968px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-actions {
        flex-direction: column;
    }

    .certificate-btn {
        width: 100%;
    }

    .modal-container {
        margin: var(--space-md);
    }

    .certificate-frame {
        padding: var(--space-xl);
    }

    .certificate-details {
        grid-template-columns: 1fr;
    }

    .certificate-footer {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--box-shadow-dark);
        padding: var(--space-xl);
        border-left: 1px solid var(--border-color);
    }

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

    .nav-list {
        flex-direction: column;
        gap: var(--space-xl);
        margin-bottom: var(--space-xl);
    }

    .nav-right {
        flex-direction: column;
        gap: var(--space-md);
    }

    .theme-text {
        display: none;
    }

    /* Hamburger menu animation */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

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

    .image-container {
        width: 300px;
        height: 300px;
    }

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

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

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

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .modal-content {
        padding: var(--space-md);
    }

    .certificate-frame {
        padding: var(--space-lg);
    }

    .recipient-name {
        font-size: 2rem;
    }

    .certificate-header h2 {
        font-size: 1.5rem;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }

    .hero-content {
        padding-top: var(--space-2xl);
    }

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

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

    .contact-icon {
        margin-right: 0;
        margin-bottom: var(--space-sm);
    }

    .project-links {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }

    .download-btn,
    .close-modal-btn {
        width: 100%;
    }

    .certificate-body {
        margin-bottom: var(--space-lg);
    }

    .certificate-text {
        font-size: 1rem;
    }
}

/* Extra Small Mobile Styles (max-width: 360px) */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .intro {
        font-size: 1.2rem;
    }

    .image-container {
        width: 220px;
        height: 220px;
    }

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

    .certificate-frame {
        padding: var(--space-md);
    }

    .recipient-name {
        font-size: 1.8rem;
    }

    .certificate-header h2 {
        font-size: 1.3rem;
    }

    .modal-header {
        padding: var(--space-md) var(--space-lg);
    }

    .footer-container {
        padding: 0 var(--space-md);
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    .skill-card:hover,
    .project-card:hover,
    .achievement-card:hover,
    .certificate-card:hover {
        transform: none;
    }

    .social-link:hover,
    .project-link:hover,
    .certificate-btn:hover {
        transform: none;
    }

    .form-input:focus,
    .form-textarea:focus {
        transform: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {

    .navbar,
    .home-social-icons,
    .footer,
    .btn,
    .certificate-actions {
        display: none !important;
    }

    .certificate-modal {
        position: static;
        display: flex !important;
    }

    .modal-overlay,
    .modal-header,
    .modal-actions {
        display: none;
    }

    .modal-container {
        box-shadow: none;
        border: none;
        max-height: none;
    }

    .certificate-frame {
        box-shadow: none;
        border: 3px solid #000;
    }

    * {
        color: #000 !important;
        background: #fff !important;
    }
}