/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FDB913;
    --accent-color: #FFA500;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #000000;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 0;
}

/* Greeting Animation */
@keyframes flipUpDown {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(90deg) translateY(-30px);
    }
    20% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
    }
    80% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
    }
    100% {
        opacity: 0;
        transform: perspective(600px) rotateX(-90deg) translateY(30px);
    }
}

.hero-greeting {
    animation: flipUpDown 3s ease-in-out;
    transform-style: preserve-3d;
    display: inline-block;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Left Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-profile {
    padding: 40px 30px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.sidebar-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-link {
    padding: 18px 30px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    border-left: 4px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 0, 0, 0.1);
    border-left-color: var(--text-dark);
    padding-left: 35px;
}

/* Right Side Navigation Icons - Roadmap Style */
.right-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.right-nav::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 25px;
    bottom: 25px;
    width: 4px;
    background: rgba(253, 185, 19, 0.2);
    border-radius: 2px;
    z-index: -1;
}

.right-nav::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 25px;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    z-index: -1;
    transition: height 0.3s ease;
}

.right-nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(253, 185, 19, 0.3);
}

.right-nav-icon:hover,
.right-nav-icon.active {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(253, 185, 19, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* Hide mobile menu on desktop/PC */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Main Content */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    width: calc(100% - 250px);
    max-width: 100vw;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    min-height: 100vh;
    display: block;
    padding: 60px 80px;
    opacity: 1;
    scroll-margin-top: 0;
    max-width: 100%;
    overflow-x: hidden;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1600px) {
    .section-content {
        max-width: 1400px;
    }
}

@media (min-width: 1920px) {
    .section-content {
        max-width: 1600px;
    }
}

.section-heading {
    font-size: 60px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

@media (min-width: 1600px) {
    .hero-split {
        gap: 80px;
    }
    
    .hero-image {
        width: 550px;
        height: 550px;
    }
    
    .hero-name {
        font-size: 80px;
    }
}

@media (min-width: 1920px) {
    .hero-split {
        gap: 100px;
    }
    
    .hero-image {
        width: 600px;
        height: 600px;
    }
    
    .hero-name {
        font-size: 90px;
    }
}

.hero-left {
    padding-right: 40px;
}

.hero-greeting {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hero-name {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-name .highlight {
    color: var(--primary-color);
}

.hero-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    letter-spacing: 2px;
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    border-radius: 3px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(253, 185, 19, 0.4);
}

.btn-primary:hover {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(253, 185, 19, 0.6);
}

.btn-certificate {
    padding: 6px 16px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-certificate:hover {
    background: var(--text-dark);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-right {
    position: relative;
}

.hero-image {
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    border: 8px solid var(--primary-color);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.hero-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background: var(--bg-white);
}

.about-intro {
    margin-bottom: 50px;
}

.about-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-intro p:first-child {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.stat-box {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-box:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.what-i-do {
    margin-bottom: 60px;
}

.what-i-do h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-details {
    margin: 50px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-label i {
    color: var(--primary-color);
    font-size: 20px;
}

.detail-value {
    color: var(--text-light);
}

.social-links-about {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links-about a {
    width: 50px;
    height: 50px;
    background: var(--text-dark);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}

.social-links-about a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-5px);
}

/* Resume Section */
.resume-section {
    background: var(--bg-light);
}

.resume-header-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.btn-resume-top {
    padding: 10px 24px;
    font-size: 14px;
    white-space: nowrap;
}

.resume-container {
    display: grid;
    gap: 40px;
}

.resume-column {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.resume-column.full-width {
    grid-column: 1 / -1;
}

.resume-category {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.resume-category i {
    color: var(--primary-color);
}

.resume-item {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid var(--bg-light);
}

.resume-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resume-year {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 15px;
}

.resume-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.resume-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.resume-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.resume-item ul {
    list-style: none;
    padding-left: 0;
}

.resume-item ul li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.resume-item ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.skills-list {
    display: grid;
    gap: 30px;
}

.skill-group h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--text-dark);
}

.certificates-list {
    display: grid;
    gap: 25px;
}

.cert-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.cert-item:hover {
    background: var(--primary-color);
    transform: translateX(10px);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--text-dark);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.cert-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cert-details p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.resume-download {
    text-align: center;
    margin-top: 50px;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--bg-white);
}

.portfolio-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-slideshow img {
    animation: fadeInOut 1s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 185, 19, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.portfolio-overlay p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.portfolio-links {
    display: flex;
    gap: 15px;
}

.portfolio-links a {
    width: 45px;
    height: 45px;
    background: var(--text-dark);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.portfolio-links a:hover {
    background: var(--bg-white);
    transform: scale(1.1);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    padding: 6px 15px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    border-radius: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-light);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.testimonial-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-info p {
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-text {
    position: relative;
    padding: 20px 0;
}

.testimonial-text i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.testimonial-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

.testimonial-rating i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Contact Section */
.contact-section {
    background: var(--bg-white);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--bg-light);
    padding: 35px 25px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-card.clickable-card {
    cursor: pointer;
}

.contact-card.clickable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(253, 185, 19, 0.4);
}

.contact-card:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--text-dark);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    font-size: 14px;
    color: var(--text-light);
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--text-dark);
}

.contact-form-new {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-new h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form-new .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 30px 0;
    text-align: center;
    margin-left: 250px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--bg-white);
    transform: translateY(-5px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: var(--primary-color);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-download {
    padding: 10px 20px;
    background: var(--text-dark);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-download:hover {
    background: var(--bg-white);
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--text-dark);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-white);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    padding: 0;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */

/* Extra Large Screens (1920px+) */
@media (min-width: 1920px) {
    .section {
        padding: 80px 120px;
    }
    
    .section-content {
        max-width: 1400px;
    }
    
    .hero-name {
        font-size: 90px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .stats-container {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 56px;
    }
    
    .services-grid {
        gap: 40px;
    }
    
    .portfolio-grid {
        gap: 35px;
    }
}

/* Large Desktop (1440px - 1920px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .section {
        padding: 70px 100px;
    }
    
    .section-content {
        max-width: 1300px;
    }
    
    .hero-name {
        font-size: 80px;
    }
    
    .stats-container {
        gap: 35px;
    }
}

/* Standard Desktop (1200px - 1440px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .section {
        padding: 60px 80px;
    }
    
    .hero-name {
        font-size: 72px;
    }
    
    .hero-image {
        width: 480px;
        height: 480px;
    }
}

@media (max-width: 1200px) {
    .section {
        padding: 40px 50px;
    }
    
    .hero-name {
        font-size: 60px;
    }
    
    .stats-container,
    .services-grid,
    .portfolio-grid,
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 250px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .section {
        padding: 40px 25px;
    }
    
    .right-nav {
        right: 10px;
        gap: 15px;
    }
    
    .right-nav-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .hero-image {
        width: 350px;
        height: 350px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-name {
        font-size: 48px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resume-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 40px 20px;
        min-height: auto;
        width: 100%;
    }
    
    .section-heading {
        font-size: 32px;
        margin-bottom: 30px;
        word-wrap: break-word;
    }
    
    .hero-section {
        padding: 60px 20px;
        min-height: 100vh;
    }
    
    .hero-name {
        font-size: 36px;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .hero-greeting {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .hero-image {
        width: 280px;
        height: 280px;
        border: 6px solid var(--primary-color);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero-buttons .btn-primary {
        width: 100%;
        max-width: 100%;
    }
    
    .stats-container,
    .services-grid,
    .portfolio-grid,
    .testimonials-container,
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .stat-box {
        padding: 25px 20px;
        width: 100%;
    }
    
    .service-item {
        padding: 25px 20px;
        width: 100%;
    }
    
    .portfolio-item {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-new {
        width: 100%;
    }
    
    input, textarea, button {
        max-width: 100%;
    }
    
    .right-nav {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .contact-form-new {
        padding: 30px 20px;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .resume-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-resume-top {
        width: 100%;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        flex: 1 1 auto;
        min-width: 80px;
    }
    
    .modal-content {
        width: 95%;
        height: 90%;
        margin: 20px;
    }
    
    .sidebar-avatar {
        width: 80px;
        height: 80px;
    }
}

/* Medium phones: 481px - 640px */
@media (min-width: 481px) and (max-width: 640px) {
    .hero-image {
        width: 260px;
        height: 260px;
    }
    
    .hero-name {
        font-size: 32px;
    }
    
    .section-heading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 15px;
    }
    
    .hero-section {
        padding: 50px 15px;
    }
    
    .hero-role {
        font-size: 10px;
        letter-spacing: 1px;
        padding: 6px 12px;
    }
    
    .hero-name {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-greeting {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .hero-image {
        width: 220px;
        height: 220px;
        border: 5px solid var(--primary-color);
    }
    
    .section-heading {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-box {
        padding: 20px 15px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .service-item {
        padding: 20px 15px;
    }
    
    .btn-primary {
        font-size: 13px;
        padding: 12px 20px;
        width: 100%;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .sidebar-link {
        padding: 15px 15px;
        font-size: 14px;
    }
    
    .sidebar-avatar {
        width: 70px;
        height: 70px;
    }
    
    .modal-content {
        width: 98%;
        margin: 10px;
        padding: 20px;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Disable effects for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for frequently animated elements */
.hero-image,
.sidebar,
.right-nav {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.6);
}

/* ============================================
   CHATBOT STYLES
   ============================================ */
.chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.chatbot-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.6);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.show {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-chat-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-chat-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message, .user-message {
    display: flex;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: white;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: var(--primary-color);
    color: var(--text-dark);
    border-bottom-right-radius: 5px;
}

.chatbot-suggestions {
    padding: 10px 15px;
    background: white;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
}

.suggestion-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.suggestion-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.chatbot-input-container {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
}

.send-chat-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-chat-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Mobile Responsiveness for Chatbot */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
        height: 500px;
    }
    
    .chatbot-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        height: 450px;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 13px;
    }
    
    .chatbot-header h3 {
        font-size: 16px;
    }
}

