/* CSS Variables for Theme */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6584;
    --accent-color: #36d1dc;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --bg-secondary: #f9f9f9;
    --card-bg: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --header-gradient: linear-gradient(135deg, #000000, #434343);
    --transition: all 0.3s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: #1e1e1e;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.spinner-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-circle:nth-child(1) { animation-delay: -0.32s; }
.spinner-circle:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

.loading-content h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.loading-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.contact-title {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    animation: pulse 2s infinite;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 154, 158, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    }
}

/* Profile Images */
.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Project Images */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-img:hover {
    transform: scale(1.05);
}

/* Certificate Images */
.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.certificate-img:hover {
    transform: scale(1.05);
}

/* Author Images */
.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-gradient);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.nav-brand h2 {
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #6c63ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.2);
}

#search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    color: white;
    width: 150px;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    color: var(--accent-color);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 70%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 2px 30px rgba(108, 99, 255, 0.5);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* INCREASED: Home page profile picture size */
.hero-image .profile-image-container {
    width: 500px;
    height: 500px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-light);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* INCREASED: About Me section profile picture size */
.about-image .profile-image-container {
    width: 450px;
    height: 450px;
}

.about-image .image-placeholder {
    font-size: 8rem;
}

/* Skills Section */
.skills {
    background: var(--bg-color);
}

.skills-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: white;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    z-index: 2;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.skill-header i {
    font-size: 2rem;
    margin-right: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-header h3 {
    font-size: 1.5rem;
}

.skill-progress {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.progress-text {
    color: var(--text-color);
    font-weight: 600;
    min-width: 40px;
}

.skill-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--bg-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.skill-description {
    color: var(--text-light);
    margin-bottom: 25px;
}

.skill-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    overflow: hidden;
    border-radius: 15px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 0 15px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 250px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    overflow: hidden;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Certificates Section */
.certificates {
    background: var(--bg-color);
}

.certificates-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 900px;
}

.certificates-container {
    overflow: hidden;
    border-radius: 15px;
}

.certificates-track {
    display: flex;
    transition: transform 0.5s ease;
}

.certificate-slide {
    min-width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 500px;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certificate-image {
    height: 350px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.certificate-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.certificate-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.certificate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.certificate-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.certificate-btn:hover {
    background: var(--primary-color);
    color: white;
}

.prev-certificate {
    left: 10px;
}

.next-certificate {
    right: 10px;
}

.certificate-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.certificate-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.certificate-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.t-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: testimonial-float 8s ease-in-out infinite;
}

.t-shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.t-shape-2 {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 10%;
    animation-delay: 2s;
}

.t-shape-3 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 85%;
    animation-delay: 4s;
}

.t-shape-4 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 80%;
    animation-delay: 6s;
}

@keyframes testimonial-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.floating-testimonials {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-testimonial {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: testimonial-spin 20s linear infinite;
}

.floating-testimonial:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.floating-testimonial:nth-child(2) {
    top: 60%;
    left: 15%;
    animation-delay: -5s;
}

.floating-testimonial:nth-child(3) {
    top: 25%;
    left: 75%;
    animation-delay: -10s;
}

.floating-testimonial:nth-child(4) {
    top: 75%;
    left: 70%;
    animation-delay: -15s;
}

.floating-testimonial:nth-child(5) {
    top: 45%;
    left: 45%;
    animation-delay: -7s;
}

@keyframes testimonial-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.testimonial-content {
    margin-bottom: 25px;
}

.quote-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-text {
    color: white;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.author-info h4 {
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.author-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: white;
    transform: scale(1.2);
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 10;
    color: white;
    backdrop-filter: blur(10px);
}

.testimonial-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev-testimonial {
    left: 10px;
}

.next-testimonial {
    right: 10px;
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ocean {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a2980, #26d0ce);
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40%;
    animation: wave 15s infinite linear;
}

.wave:nth-child(1) {
    top: 0;
    left: -100%;
    animation-delay: 0s;
    opacity: 0.7;
}

.wave:nth-child(2) {
    top: 10%;
    left: -100%;
    animation-delay: -5s;
    opacity: 0.5;
}

.wave:nth-child(3) {
    top: 20%;
    left: -100%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: white;
    margin-top: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-item h3 {
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    outline: none;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: white;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -20px;
    font-size: 0.9rem;
    color: white;
}

.contact-form .btn {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-form .btn .btn-loading {
    display: none;
}

.contact-form .btn.sending .btn-text {
    display: none;
}

.contact-form .btn.sending .btn-loading {
    display: block;
}

/* Form Status Message */
.form-status {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: block;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    display: block;
}

/* Footer */
.footer {
    background: #000;
    padding: 50px 0 20px;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 10px;
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-color);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    margin-bottom: 20px;
    text-align: center;
}

/* Updated Gallery Modal Styles */
#gallery-modal .modal-content {
    max-width: 95%;
    width: 95%;
    height: 95vh;
    margin: 2.5vh auto;
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-viewer-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-viewer-title {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.gallery-viewer-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.gallery-viewer-close:hover {
    color: var(--accent-color);
}

.gallery-viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-main-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-nav-btn:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-thumbnails {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.gallery-thumbnails-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    min-width: max-content;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-info h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

.gallery-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Updated Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-grid-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.gallery-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-grid-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-grid-info {
    padding: 15px;
}

.gallery-grid-info h4 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-color);
}

.gallery-grid-info p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Loading state for gallery images */
.gallery-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Video Container Styles */
.video-container, .detail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.video-item, .detail-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.video-item:hover, .detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* YouTube Thumbnail Styles */
.youtube-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.youtube-thumb:hover .youtube-thumbnail {
    transform: scale(1.05);
}

.youtube-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.youtube-thumb:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.youtube-thumb:hover .play-button {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    margin-left: 3px;
}

.video-info {
    padding: 15px;
    background: var(--bg-secondary);
}

.video-info h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.video-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.gallery-info, .detail-info {
    padding: 15px;
}

.gallery-info h3, .detail-info h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.gallery-info p, .detail-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* YouTube Video Modal */
.youtube-modal .modal-content {
    max-width: 900px;
    padding: 20px;
    background: #000;
}

.youtube-modal-content {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.youtube-player-container {
    width: 100%;
    background: #000;
}

#youtube-player {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 0;
}

.youtube-info {
    padding: 20px;
    color: white;
    background: #000;
}

.youtube-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: white;
}

.youtube-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.search-result-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .testimonial-slide {
        min-width: 100%;
    }
    
    .certificate-card {
        height: auto;
        min-height: 450px;
    }
    
    .certificate-image {
        height: 300px;
    }
    
    /* Responsive adjustments for larger images */
    .hero-image .profile-image-container {
        width: 380px;
        height: 380px;
    }
    
    .about-image .profile-image-container {
        width: 350px;
        height: 350px;
    }
    
    #youtube-player {
        height: 400px;
    }
    
    .gallery-grid, .video-container, .detail-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    #gallery-modal .modal-content {
        width: 98%;
        height: 98vh;
        margin: 1vh auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--header-gradient);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .certificate-card {
        height: auto;
        min-height: 400px;
    }
    
    .certificate-image {
        height: 250px;
    }
    
    /* Responsive adjustments for larger images on tablet */
    .hero-image .profile-image-container {
        width: 320px;
        height: 320px;
    }
    
    .about-image .profile-image-container {
        width: 280px;
        height: 280px;
    }
    
    .testimonial-slide {
        min-width: 100%;
    }
    
    #youtube-player {
        height: 300px;
    }
    
    .gallery-grid, .video-container, .detail-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-main-image {
        max-width: 95%;
        max-height: 95%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .gallery-grid-image {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .skills-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .skill-actions {
        flex-direction: column;
    }
    
    .certificate-card {
        height: auto;
        min-height: 350px;
    }
    
    .certificate-image {
        height: 200px;
    }
    
    /* Responsive adjustments for larger images on mobile */
    .hero-image .profile-image-container {
        width: 260px;
        height: 260px;
    }
    
    .about-image .profile-image-container {
        width: 240px;
        height: 240px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .gallery-grid, .video-container, .detail-container {
        grid-template-columns: 1fr;
    }
    
    #youtube-player {
        height: 250px;
    }
    
    .youtube-info {
        padding: 15px;
    }
    
    .youtube-info h3 {
        font-size: 1.3rem;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .gallery-viewer-header {
        padding: 15px;
    }
    
    .gallery-viewer-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    #youtube-player {
        height: 200px;
    }
    
    .youtube-info {
        padding: 10px;
    }
    
    .youtube-info h3 {
        font-size: 1.1rem;
    }
    
    .youtube-info p {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .gallery-grid-image {
        height: 100px;
    }
    
    .certificate-card {
        height: auto;
        min-height: 300px;
    }
    
    .certificate-image {
        height: 180px;
    }
    
    /* Smallest screen adjustments */
    .hero-image .profile-image-container {
        width: 220px;
        height: 220px;
    }
    
    .about-image .profile-image-container {
        width: 200px;
        height: 200px;
    }
}