/* Reset and Base Styles */
:root {
    --primary: #3a0ca3;
    --secondary: #4361ee;
    --accent: #f72585;
    --success: #2ec4b6;
    --warning: #ff9f1c;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --body-bg: #ffffff;
    --body-color: #212529;
    --card-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --footer-color: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
}

.dark-mode {
    --body-bg: #121212;
    --body-color: #f8f9fa;
    --card-bg: #1e1e1e;
    --footer-bg: #1a1a1a;
    --footer-color: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --light-gray: #2d2d2d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--body-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--body-color);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 12px 24px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 8px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(58, 12, 163, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 12, 163, 0.3);
    background: linear-gradient(135deg, #2d0a82, #3252e6);
}

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

.btn-outline:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 12, 163, 0.2);
}

.btn-ghost {
    color: var(--primary);
    background: rgba(58, 12, 163, 0.1);
    border: 2px solid transparent;
}

.btn-ghost:hover {
    background: rgba(58, 12, 163, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 12, 163, 0.1);
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Navigation - Enhanced */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background-color: rgba(var(--card-bg-rgb, 255, 255, 255), 0.95);
}

.dark-mode .navbar {
    background-color: rgba(var(--card-bg-rgb, 30, 30, 30), 0.95);
}

.navbar.scrolled {
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--accent);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: var(--body-color);
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 600;
    border-radius: var(--radius);
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(58, 12, 163, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-left: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.theme-toggle i {
    font-size: 14px;
    z-index: 2;
    color: white;
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .toggle-thumb {
    transform: translateX(28px);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--body-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(1px, -1px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* Hero Sections */
.hero-section, .projects-hero, .about-hero, .contact-hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.05) 0%, rgba(67, 97, 238, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before, .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span.highlight {
    display: inline-block;
    position: relative;
}

.hero-title span.highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--body-color);
    line-height: 1.7;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.cert-badge {
    background: rgba(58, 12, 163, 0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(58, 12, 163, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-badge:hover {
    background: rgba(58, 12, 163, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.1);
}

.cert-badge i {
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.profile-img-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--primary);
    box-shadow: 0 20px 40px rgba(58, 12, 163, 0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.3);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

.floating-element:hover {
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
    transform: scale(1.2);
    box-shadow: 0 15px 30px rgba(247, 37, 133, 0.4);
}

.element-1 { top: -20px; left: -20px; animation-delay: 0s; }
.element-2 { top: -20px; right: -20px; animation-delay: 1s; }
.element-3 { bottom: -20px; left: -20px; animation-delay: 2s; }
.element-4 { bottom: -20px; right: -20px; animation-delay: 3s; }
.element-5 { top: 50%; right: -30px; animation-delay: 4s; }
.element-6 { bottom: 30%; left: -30px; animation-delay: 5s; }

/* Skills Preview */
.skills-preview {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

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

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-preview {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-preview:hover::before {
    transform: translateX(0);
}

.skill-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(58, 12, 163, 0.1);
}

.skill-preview i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.skill-preview:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

.skill-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.skill-preview p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

.skill-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(46, 196, 182, 0.1);
    color: var(--success);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--body-color);
}

.resume-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.highlight-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(58, 12, 163, 0.1);
}

.highlight-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.2);
    color: var(--accent);
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.highlight-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Skills Section */
.skills-section {
    background: var(--light-gray);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

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

.skill-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.skill-item {
    margin-bottom: 25px;
}

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

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

.skill-percentage {
    font-weight: 700;
    color: var(--accent);
    background: rgba(247, 37, 133, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.skill-bar {
    height: 12px;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

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

/* Timeline */
.timeline-section {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.05) 0%, rgba(67, 97, 238, 0.05) 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(58, 12, 163, 0.1);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(58, 12, 163, 0.1);
}

.project-img {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-img i {
    position: relative;
    z-index: 2;
}

.project-content {
    padding: 30px;
}

.project-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.status-completed {
    background: rgba(46, 196, 182, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.status-in-progress {
    background: rgba(255, 158, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 158, 0, 0.3);
}

.status-hackathon {
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent);
    border: 1px solid rgba(247, 37, 133, 0.3);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-content > p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-features {
    margin: 20px 0;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
    position: relative;
    color: var(--body-color);
    line-height: 1.5;
}

.project-features li::before {
    content: "▸";
    color: var(--primary);
    position: absolute;
    left: -15px;
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.tech-tag {
    background: var(--light-gray);
    color: var(--body-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.project-highlight {
    border: 3px solid var(--accent);
    position: relative;
}

.project-highlight::before {
    content: "⭐ Featured";
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

/* FIXED Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.05) 0%, rgba(67, 97, 238, 0.05) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.contact-info:hover {
    border-color: rgba(58, 12, 163, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.contact-info > p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    background: rgba(58, 12, 163, 0.03);
    border: 2px solid transparent;
}

.contact-item:hover {
    background: rgba(58, 12, 163, 0.08);
    border-color: rgba(58, 12, 163, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-item-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-item-content p {
    color: var(--body-color);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    justify-content: center;
}

.contact-social .social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.contact-social .social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.3);
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
}

.availability {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(67, 97, 238, 0.1));
    border-radius: var(--radius);
    border-left: 4px solid var(--success);
    position: relative;
    overflow: hidden;
}

.availability::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.availability h4 {
    color: var(--success);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.availability p {
    color: var(--body-color);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* FIXED Contact Form */
.contact-form-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.contact-form-container:hover {
    border-color: rgba(58, 12, 163, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    background: var(--body-bg);
    color: var(--body-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(58, 12, 163, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233a0ca3' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
}

.form-message {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 25px;
    animation: slideInUp 0.5s ease-out;
    gap: 15px;
}

.form-message.success {
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(46, 196, 182, 0.05));
    border: 2px solid rgba(46, 196, 182, 0.3);
    color: var(--success);
}

.form-message.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    border: 2px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.form-message i {
    font-size: 1.5rem;
}

.form-message p {
    margin: 0;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-color);
    padding: 60px 0 20px;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-info p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 400px;
}

.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.3);
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
    font-size: 0.95rem;
}

/* Certificates Section */
.certificates-section {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.05) 0%, rgba(67, 97, 238, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 40px auto;
    perspective: 1000px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 40s infinite linear;
    transition: transform 0.5s ease;
}

.carousel:hover {
    animation-play-state: paused;
}

.certificate-item {
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    top: 50%;
    left: 50%;
    margin-left: -90px;
    margin-top: -90px;
    border: 4px solid var(--primary);
    overflow: hidden;
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.1), rgba(67, 97, 238, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-item:hover::before {
    opacity: 1;
}

.certificate-item:hover {
    transform: scale(1.3) rotateY(0deg) !important;
    box-shadow: 0 25px 50px rgba(58, 12, 163, 0.4);
    z-index: 100;
    border-color: var(--accent);
}

.certificate-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.certificate-item:hover .certificate-icon {
    color: var(--accent);
    transform: scale(1.3) rotate(10deg);
}

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

.certificate-content h3 {
    font-size: 1rem;
    margin: 8px 0;
    color: var(--primary);
    font-weight: 700;
}

.certificate-content p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 4px 0;
}

.certificate-content a {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    margin-top: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 6px 15px;
    background: rgba(247, 37, 133, 0.1);
    border-radius: 20px;
}

.certificate-content a:hover {
    color: white;
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

/* Position certificates */
.certificate-item:nth-child(1) { transform: rotateY(0deg) translateZ(300px); }
.certificate-item:nth-child(2) { transform: rotateY(30deg) translateZ(300px); }
.certificate-item:nth-child(3) { transform: rotateY(60deg) translateZ(300px); }
.certificate-item:nth-child(4) { transform: rotateY(90deg) translateZ(300px); }
.certificate-item:nth-child(5) { transform: rotateY(120deg) translateZ(300px); }
.certificate-item:nth-child(6) { transform: rotateY(150deg) translateZ(300px); }
.certificate-item:nth-child(7) { transform: rotateY(180deg) translateZ(300px); }
.certificate-item:nth-child(8) { transform: rotateY(210deg) translateZ(300px); }
.certificate-item:nth-child(9) { transform: rotateY(240deg) translateZ(300px); }
.certificate-item:nth-child(10) { transform: rotateY(270deg) translateZ(300px); }
.certificate-item:nth-child(11) { transform: rotateY(300deg) translateZ(300px); }
.certificate-item:nth-child(12) { transform: rotateY(330deg) translateZ(300px); }

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

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
    transform: scale(1.2);
    box-shadow: 0 15px 30px rgba(247, 37, 133, 0.4);
}

/* Animations */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(58, 12, 163, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.chatbot-toggle:hover::before {
    transform: translateX(100%);
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 20px 40px rgba(58, 12, 163, 0.6);
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
}

.chatbot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 400px;
    height: 600px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    border: 3px solid var(--primary);
}

.chatbot-window.active {
    transform: scale(1);
    opacity: 1;
}

.chatbot-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.chatbot-header i {
    font-size: 1.8rem;
    color: white;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    max-width: 85%;
    padding: 18px 22px;
    border-radius: 20px;
    line-height: 1.5;
    animation: slideInUp 0.3s ease-out;
    position: relative;
    word-wrap: break-word;
}

.message p {
    margin: 0;
}

.bot-message {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.1), rgba(67, 97, 238, 0.1));
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 2px solid rgba(58, 12, 163, 0.2);
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    border: 2px solid rgba(58, 12, 163, 0.3);
}

.quick-questions {
    padding: 0 25px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-question {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.1), rgba(67, 97, 238, 0.1));
    color: var(--primary);
    border: 2px solid rgba(58, 12, 163, 0.2);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quick-question:hover {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.2), rgba(67, 97, 238, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.2);
}

.chatbot-input-container {
    padding: 25px;
    border-top: 2px solid var(--light-gray);
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(58, 12, 163, 0.03);
}

.chatbot-input {
    flex: 1;
    padding: 16px 22px;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    background: var(--body-bg);
    color: var(--body-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.chatbot-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(58, 12, 163, 0.15);
}

.chatbot-send {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.chatbot-send:hover {
    background: linear-gradient(135deg, var(--accent), #ff4d9e);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.1), rgba(67, 97, 238, 0.1));
    border-radius: 20px;
    align-self: flex-start;
    width: fit-content;
    border: 2px solid rgba(58, 12, 163, 0.2);
}

.typing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section {
        padding: 70px 0;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-info p {
        max-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .certificate-item {
        width: 150px;
        height: 150px;
        margin-left: -75px;
        margin-top: -75px;
    }
    
    .certificate-item:nth-child(1) { transform: rotateY(0deg) translateZ(250px); }
    .certificate-item:nth-child(2) { transform: rotateY(30deg) translateZ(250px); }
    .certificate-item:nth-child(3) { transform: rotateY(60deg) translateZ(250px); }
    .certificate-item:nth-child(4) { transform: rotateY(90deg) translateZ(250px); }
    .certificate-item:nth-child(5) { transform: rotateY(120deg) translateZ(250px); }
    .certificate-item:nth-child(6) { transform: rotateY(150deg) translateZ(250px); }
    .certificate-item:nth-child(7) { transform: rotateY(180deg) translateZ(250px); }
    .certificate-item:nth-child(8) { transform: rotateY(210deg) translateZ(250px); }
    .certificate-item:nth-child(9) { transform: rotateY(240deg) translateZ(250px); }
    .certificate-item:nth-child(10) { transform: rotateY(270deg) translateZ(250px); }
    .certificate-item:nth-child(11) { transform: rotateY(300deg) translateZ(250px); }
    .certificate-item:nth-child(12) { transform: rotateY(330deg) translateZ(250px); }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    /* Navigation */
    .navbar .container {
        padding: 0 20px;
        height: 65px;
    }
    
    .navbar-links {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        z-index: 999;
    }
    
    .navbar-links.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 20px;
        font-size: 1.2rem;
        border-radius: var(--radius);
        margin: 5px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero-section, .projects-hero, .about-hero, .contact-hero {
        padding: 120px 0 70px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .profile-img-container {
        width: 300px;
        height: 300px;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-preview {
        padding: 30px;
    }
    
    /* Resume Highlights */
    .resume-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Skills Container */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding: 0 0 40px 70px;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-right: 0;
        padding-left: 70px;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Contact Form */
    .contact-info,
    .contact-form-container {
        padding: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Chatbot */
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 500px;
        right: 20px;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Carousel */
    .carousel-container {
        height: 300px;
    }
    
    .certificate-item {
        width: 120px;
        height: 120px;
        margin-left: -60px;
        margin-top: -60px;
    }
    
    .certificate-item:nth-child(1) { transform: rotateY(0deg) translateZ(180px); }
    .certificate-item:nth-child(2) { transform: rotateY(30deg) translateZ(180px); }
    .certificate-item:nth-child(3) { transform: rotateY(60deg) translateZ(180px); }
    .certificate-item:nth-child(4) { transform: rotateY(90deg) translateZ(180px); }
    .certificate-item:nth-child(5) { transform: rotateY(120deg) translateZ(180px); }
    .certificate-item:nth-child(6) { transform: rotateY(150deg) translateZ(180px); }
    .certificate-item:nth-child(7) { transform: rotateY(180deg) translateZ(180px); }
    .certificate-item:nth-child(8) { transform: rotateY(210deg) translateZ(180px); }
    .certificate-item:nth-child(9) { transform: rotateY(240deg) translateZ(180px); }
    .certificate-item:nth-child(10) { transform: rotateY(270deg) translateZ(180px); }
    .certificate-item:nth-child(11) { transform: rotateY(300deg) translateZ(180px); }
    .certificate-item:nth-child(12) { transform: rotateY(330deg) translateZ(180px); }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .profile-img-container {
        width: 250px;
        height: 250px;
    }
    
    .floating-elements {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form h3,
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .chatbot-window {
        height: 450px;
    }
    
    .chatbot-input-container {
        padding: 20px;
    }
    
    .cert-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .certificate-item {
        width: 100px;
        height: 100px;
        margin-left: -50px;
        margin-top: -50px;
    }
    
    .certificate-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .certificate-content h3 {
        font-size: 0.85rem;
    }
    
    .certificate-content p {
        font-size: 0.7rem;
    }
    
    .certificate-content a {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .certificate-item:nth-child(1) { transform: rotateY(0deg) translateZ(140px); }
    .certificate-item:nth-child(2) { transform: rotateY(30deg) translateZ(140px); }
    .certificate-item:nth-child(3) { transform: rotateY(60deg) translateZ(140px); }
    .certificate-item:nth-child(4) { transform: rotateY(90deg) translateZ(140px); }
    .certificate-item:nth-child(5) { transform: rotateY(120deg) translateZ(140px); }
    .certificate-item:nth-child(6) { transform: rotateY(150deg) translateZ(140px); }
    .certificate-item:nth-child(7) { transform: rotateY(180deg) translateZ(140px); }
    .certificate-item:nth-child(8) { transform: rotateY(210deg) translateZ(140px); }
    .certificate-item:nth-child(9) { transform: rotateY(240deg) translateZ(140px); }
    .certificate-item:nth-child(10) { transform: rotateY(270deg) translateZ(140px); }
    .certificate-item:nth-child(11) { transform: rotateY(300deg) translateZ(140px); }
    .certificate-item:nth-child(12) { transform: rotateY(330deg) translateZ(140px); }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .profile-img-container {
        width: 220px;
        height: 220px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 400px;
        right: 15px;
    }
    
    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}

/* iOS Safari 100vh Fix */
@supports (-webkit-touch-callout: none) {
    .hero-section, .projects-hero, .about-hero, .contact-hero {
        min-height: -webkit-fill-available;
        padding-top: calc(100px + env(safe-area-inset-top));
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .navbar .container {
        height: calc(70px + env(safe-area-inset-top));
    }
    
    .navbar-links {
        top: calc(70px + env(safe-area-inset-top));
        height: calc(100vh - 70px - env(safe-area-inset-top));
    }
    
    .chatbot-container {
        bottom: calc(25px + env(safe-area-inset-bottom));
        right: calc(25px + env(safe-area-inset-right));
    }
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Touch-friendly tap targets */
button, 
a, 
input, 
select, 
textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Improve font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .chatbot-container,
    .contact-form,
    .social-icons {
        display: none !important;
    }
    
    .section {
        padding: 20px 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
