/* Root Variables */
:root {
    --primary-color: #007bff; /* Professional Blue */
    --secondary-color: #0056b3; /* Darker Blue */
    --accent-color: #007bff;
    --background-dark: #121212;
    --background-light: #1e1e1e; /* Slightly lighter dark for cards */
    --text-main: #e2e8f0;
    --text-muted: #adb5bd;
    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background-dark);
    position: relative;
    overflow-x: hidden;
}

/* Professional 3D/4D Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2d2d2d 25%, 
        #1a1a1a 50%, 
        #3d3d3d 75%, 
        #1a1a1a 100%);
    animation: gradientShift 15s ease infinite;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 86, 179, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(0, 123, 255, 0.08) 0%, transparent 50%);
    animation: floating 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, 
            #1a1a1a 0%, 
            #2d2d2d 25%, 
            #1a1a1a 50%, 
            #3d3d3d 75%, 
            #1a1a1a 100%);
    }
    25% {
        background: linear-gradient(225deg, 
            #1a1a1a 0%, 
            #3d3d3d 25%, 
            #2d2d2d 50%, 
            #1a1a1a 75%, 
            #2d2d2d 100%);
    }
    50% {
        background: linear-gradient(315deg, 
            #2d2d2d 0%, 
            #1a1a1a 25%, 
            #3d3d3d 50%, 
            #2d2d2d 75%, 
            #1a1a1a 100%);
    }
    75% {
        background: linear-gradient(45deg, 
            #3d3d3d 0%, 
            #1a1a1a 25%, 
            #2d2d2d 50%, 
            #3d3d3d 75%, 
            #1a1a1a 100%);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(90deg);
    }
    50% {
        transform: translate(-5%, 10%) rotate(180deg);
    }
    75% {
        transform: translate(10%, -5%) rotate(270deg);
    }
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.nav-logo:hover .nav-profile-img {
    border-color: #fff;
    transform: scale(1.1);
}

.logo-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.nav-logo:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 0.8rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    position: relative;
    font-size: 0.9rem;
}

.nav-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.3) rotate(10deg);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: transparent;
    color: var(--text-main);
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: white !important;
    border: 2px solid var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

.profile-img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: transparent;
}

.about h2,
.skills h2,
.projects h2,
.cv-section h2,
.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.about-content p {
    color: var(--text-main);
}

/* Skills Section */
.skills {
    padding: 100px 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--background-light);
    padding: 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.project-link:hover {
    background-color: var(--secondary-color);
}

/* CV Section */
.cv-section {
    padding: 100px 0;
}

.cv-highlight {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.02) 100%);
}

.cv-featured {
    max-width: 1000px;
    margin: 0 auto;
}

.cv-hero {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 86, 179, 0.08) 100%);
    padding: 60px 50px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.3);
    margin-bottom: 40px;
}

.cv-icon-large {
    font-size: 6rem;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.4));
}

.cv-hero h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.cv-description {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cv-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-large:hover {
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.6);
}

.cv-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cv-stat {
    background: var(--glass-bg);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.cv-stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.cv-stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.cv-stat h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cv-stat p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Curriculum Vitae Detail Section */
.cv-section {
    padding: 100px 0;
}

.cv-section-box {
    background: var(--background-light);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.cv-section-box h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.cv-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-item h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cv-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.cv-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cv-link {
    display: inline-block;
    width: auto;
    margin-top: 10px;
    padding: 8px 18px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.cv-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.cv-section-box a[href^="tel"],
.cv-section-box a[href^="mailto"],
.cv-section-box a[href^="http"] {
    color: var(--primary-color);
    text-decoration: none;
}

.cv-section-box a[href^="tel"]:hover,
.cv-section-box a[href^="mailto"]:hover,
.cv-section-box a[href^="http"]:hover {
    text-decoration: underline;
}

.cv-download {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cv-view-btn {
    margin-right: 0;
}

/* Modern Curriculum Vitae Section */
.curriculum-vitae-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03) 0%, rgba(0, 86, 179, 0.01) 100%);
}

.cv-tagline {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-style: italic;
}

.cv-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.cv-modern-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    overflow: hidden;
}

.cv-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 123, 255, 0.2);
    border-color: var(--primary-color);
}

.cv-certificates {
    grid-column: 1 / -1;
}

.cv-card-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 86, 179, 0.1) 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.cv-header-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.4));
}

.cv-card-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.cv-card-body {
    padding: 35px;
}

/* Timeline Styles */
.cv-timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 35px;
    border-left: 3px solid rgba(0, 123, 255, 0.3);
}

.cv-timeline-item:last-child {
    margin-bottom: 0;
}

.cv-timeline-dot {
    position: absolute;
    left: -8px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.1);
    }
}

.cv-timeline-content h4 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.cv-role-subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cv-role-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-style: italic;
}

.cv-role-desc {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 15px;
}

.cv-modern-link {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.cv-modern-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Skills Section in CV */
.cv-skill-category {
    margin-bottom: 30px;
}

.cv-skill-category:last-child {
    margin-bottom: 0;
}

.cv-skill-category h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cv-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cv-skill-badge {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 86, 179, 0.08) 100%);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0, 123, 255, 0.3);
    transition: var(--transition);
}

.cv-skill-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Contact Items in CV */
.cv-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 18px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.cv-contact-item:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.cv-contact-item:last-child {
    margin-bottom: 0;
}

.cv-contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cv-contact-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cv-contact-item p {
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

.cv-contact-item a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.cv-contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Certificate Viewer in CV */
.cert-carousel-wrapper {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.cert-display {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-carousel-wrapper:fullscreen .cert-display,
.cert-carousel-wrapper:-webkit-full-screen .cert-display,
.cert-carousel-wrapper:-moz-full-screen .cert-display {
    min-height: 80vh;
}

.cert-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 20px;
    overflow: auto;
}

.cert-item.active {
    opacity: 1;
    animation: certSlideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes certSlideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* New Features Styles */
.cert-counter {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 5px;
}

.cert-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cert-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    z-index: 5;
}

.cert-control-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cert-control-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.cert-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
}

.cert-dot:hover .cert-tooltip {
    opacity: 1;
}

.cert-dot {
    position: relative; /* For tooltip positioning */
}

.cert-item img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform-origin: center;
    transition: transform 0.3s ease;
    cursor: grab;
}

.cert-item img:active {
    cursor: grabbing;
}

.cert-pdf-container {
    position: relative;
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Certificate Container */
.cert-pdf-container {
    position: relative;
    width: 95%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.cert-pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
    border-radius: 10px;
}

.cert-carousel-wrapper:fullscreen .cert-pdf-viewer,
.cert-carousel-wrapper:-webkit-full-screen .cert-pdf-viewer,
.cert-carousel-wrapper:-moz-full-screen .cert-pdf-viewer {
    min-height: 70vh;
}

.cert-pdf-info {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

.cert-pdf-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.cert-pdf-open-btn-small {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-pdf-open-btn-small:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.6);
}

/* Certificate Controls */
.cert-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    gap: 20px;
}

.cert-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cert-nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.cert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cert-title-display {
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
    text-align: center;
}

.cert-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.cert-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.cert-dot:hover {
    background: var(--primary-color);
}

.cert-actions-bar {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    justify-content: center;
    flex-wrap: wrap;
}

.cert-zoom-controls {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--glass-border);
}

.cert-zoom-btn,
.cert-fullscreen-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.cert-zoom-btn:hover,
.cert-fullscreen-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

.cert-fullscreen-btn {
    background: rgba(0, 123, 255, 0.8);
    margin-left: 10px;
}

.cert-view-btn,
.cert-download-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-view-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cert-view-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.cert-download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cert-download-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cert-description {
    padding: 25px;
    background: rgba(0, 123, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.cert-desc-content {
    display: none;
}

.cert-desc-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cert-desc-content h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.cert-desc-content p {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 15px;
}

.cert-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.cert-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cert-detail-item strong {
    color: var(--text-main);
}

.cert-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

/* News & Achievements Section */
.news-section {
    padding: 100px 0;
    background-color: transparent;
}

.section-tagline {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    margin-top: -20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.news-card.featured {
    grid-column: span 2;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.3);
}

.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.news-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.achievement-details {
    background: rgba(0, 123, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.detail-item {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: var(--primary-color);
    margin-right: 8px;
}

.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.news-tags .tag {
    background: rgba(0, 123, 255, 0.2);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Photo Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.gallery-fb-link {
    display: inline-block;
    background: rgba(0, 123, 255, 0.9);
    color: white !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 5px;
}

.gallery-fb-link:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.gallery-view-more {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.gallery-view-more p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.gallery-social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-social-links .btn {
    min-width: 120px;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 123, 255, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 123, 255, 0.8);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
}

.lightbox-nav:hover {
    background: var(--primary-color);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Contact Section -->
.contact {
    padding: 100px 0;
    background: transparent;
    color: var(--text-main);
}

/* Certificates Section */
.certificates {
    padding: 100px 0;
    background: transparent;
}

.certificates-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-card-featured {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 50px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2);
    transition: var(--transition);
}

.certificate-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.3);
    border-color: var(--primary-color);
}

.certificate-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.certificate-card-featured h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.certificate-card-featured p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-certificate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.btn-certificate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-highlight {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.cert-highlight:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.cert-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.cert-highlight h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cert-highlight p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Resume Section */
.resume {
    padding: 100px 0;
    background: transparent;
}

.resume-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.resume-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.resume-card {
    background: var(--glass-bg);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.resume-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.resume-card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.resume-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.resume-card p {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 15px;
}

.resume-list {
    list-style: none;
    padding: 0;
}

.resume-list li {
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.resume-list li:last-child {
    border-bottom: none;
}

.resume-list strong {
    color: var(--primary-color);
}

.resume-download-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2);
}

.resume-download-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.resume-download-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-resume-download {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white !important;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-resume-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: transparent;
    color: var(--text-main);
}

.contact h2 {
    color: var(--primary-color);
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.contact-info {
    color: var(--text-main);
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-link:hover {
    color: var(--text-main);
    transform: translateX(10px);
}

.contact-details {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

#hiddenConfirm {
    display: none !important;
}

#datetime {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Form Loading State */
#submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Footer */
.footer {
    background-color: rgba(18, 18, 18, 0.9);
    color: var(--text-muted);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Responsive Design - Comprehensive Multi-Device Support */

/* Large Tablets and Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1,
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .projects-grid,
    .resume-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* News Section Responsive */
    .news-card.featured {
        grid-column: span 1;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tablets and iPad (481px - 768px) */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        gap: 0;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.85);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        backdrop-filter: blur(25px) saturate(180%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        padding: 30px 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        z-index: 998;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about h2,
    .skills h2,
    .projects h2,
    .cv-section h2,
    .certificates h2,
    .resume h2,
    .contact h2 {
        font-size: 2rem;
    }

    section,
    .certificates,
    .resume,
    .contact {
        padding: 60px 0;
    }

    .cv-hero {
        padding: 40px 30px;
    }

    .cv-hero h3 {
        font-size: 2rem;
    }

    .cv-description {
        font-size: 1.1rem;
    }

    .cv-icon-large {
        font-size: 4.5rem;
    }

    .cv-highlights {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid,
    .certificates-grid,
    .resume-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 0;
        border-left: none;
    }

    .timeline-item::before {
        display: none;
    }

    .certificate-card-featured,
    .resume-download-section {
        padding: 35px 25px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Modern CV Responsive */
    .cv-modern-grid {
        grid-template-columns: 1fr;
    }

    .cv-tagline {
        font-size: 1.1rem;
    }

    .cv-card-header {
        padding: 25px;
    }

    .cv-card-header h3 {
        font-size: 1.5rem;
    }

    .cv-card-body {
        padding: 25px;
    }

    .cv-skill-tags {
        gap: 10px;
    }
    
    /* News Section Tablet */
    .news-image {
        height: 250px;
    }
    
    .news-content h3 {
        font-size: 1.3rem;
    }
    
    /* Gallery Tablet */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .lightbox-nav {
        padding: 15px 10px;
        font-size: 24px;
    }
}

/* Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .logo,
    .nav-logo {
        font-size: 1.3rem;
    }

    nav {
        padding: 15px 0;
    }

    .hero,
    .certificates,
    .resume,
    .contact {
        padding: 50px 0;
    }

    .cv-hero {
        padding: 30px 20px;
    }

    .cv-hero h3 {
        font-size: 1.6rem;
    }

    .cv-description {
        font-size: 1rem;
    }

    .cv-icon-large {
        font-size: 4rem;
    }

    .cv-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .cv-stat {
        padding: 25px;
    }

    .hero-content h1,
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-certificate,
    .btn-resume-download {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skill-badge {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .project-card {
        padding: 25px;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .cv-section {
        padding: 30px 20px;
    }

    .cv-link {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .timeline-item {
        padding: 20px;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .certificate-card-featured,
    .resume-download-section {
        padding: 30px 20px;
    }

    .certificate-card-featured h3,
    .resume-download-section h3 {
        font-size: 1.5rem;
    }

    .certificate-icon,
    .resume-card-icon {
        font-size: 3.5rem;
    }

    .resume-card {
        padding: 25px;
    }

    .resume-card h3 {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .submit-btn {
        width: 100%;
    }

    footer {
        padding: 30px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
    }

    /* Modern CV Mobile */
    .cv-modern-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cv-tagline {
        font-size: 1rem;
    }

    .cv-card-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cv-header-icon {
        font-size: 2.5rem;
    }

    .cv-card-header h3 {
        font-size: 1.3rem;
    }

    .cv-card-body {
        padding: 20px;
    }

    .cv-timeline-item {
        padding-left: 30px;
        margin-bottom: 25px;
    }

    .cv-timeline-content h4 {
        font-size: 1.1rem;
    }

    .cv-role-subtitle {
        font-size: 1rem;
    }

    .cv-role-date {
        font-size: 0.85rem;
    }

    .cv-modern-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .cv-skill-category h4 {
        font-size: 1.1rem;
    }

    .cv-skill-tags {
        gap: 8px;
    }

    .cv-skill-badge {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .cv-contact-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .cv-contact-icon {
        font-size: 1.5rem;
    }

    /* Certificate Viewer Mobile */
    .cert-display {
        min-height: 350px;
    }

    .cert-controls {
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }

    .cert-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }

    .cert-title-display {
        font-size: 0.95rem;
    }

    .cert-actions-bar {
        flex-direction: column;
        padding: 15px;
    }

    .cert-view-btn,
    .cert-download-btn {
        width: 100%;
        justify-content: center;
    }

    .cert-description {
        padding: 20px;
    }

    .cert-details-grid {
        flex-direction: column;
        gap: 10px;
    }

    .cert-pdf-viewer {
        height: 300px;
    }
    
    /* News Section Mobile */
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .achievement-details {
        padding: 12px;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
    
    .lightbox-nav {
        padding: 10px 8px;
        font-size: 20px;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Extra Small Mobile - iPhone SE, Small Android (320px - 375px) */
@media (max-width: 375px) {
    .hero h1,
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .profile-img {
        width: 130px;
        height: 130px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .nav-links {
        top: 60px;
    }

    .certificate-card-featured,
    .resume-download-section {
        padding: 25px 15px;
    }
}

/* Large Screens - Desktops (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }

    h2 {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resume-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Screens - 4K TVs, Large Monitors (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 2rem;
    }

    .profile-img {
        width: 320px;
        height: 320px;
    }

    h2 {
        font-size: 3.5rem;
    }

    section,
    .certificates,
    .resume {
        padding: 150px 0;
    }

    .project-card,
    .resume-card {
        padding: 45px;
    }

    .certificate-card-featured,
    .resume-download-section {
        padding: 70px;
    }
}

/* iPad Pro & Tablet Landscape (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .projects-grid,
    .resume-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iPhone 14 Pro Max & Large Phones (414px - 480px) */
@media (min-width: 414px) and (max-width: 480px) {
    .hero h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    section,
    .certificates,
    .resume {
        padding: 40px 0;
    }

    .nav-links {
        top: 60px;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* High DPI Displays (Retina, Mac) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
