/* =========================================
   GLOBAL STYLES & VARIABLES
   ========================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #4a9eff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --navbar-bg: linear-gradient(135deg, rgba(80, 80, 80, 0.6) 0%, rgba(120, 120, 120, 0.6) 50%, rgba(80, 80, 80, 0.6) 100%);
    --navbar-bg-scrolled: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(80, 80, 80, 0.8) 50%, rgba(50, 50, 50, 0.8) 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* =========================================
   CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #505050 0%, #606060 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #606060 0%, #707070 100%);
}

/* =========================================
   SIDEBAR NAVIGATION
   ========================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: 5px 0 40px rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(74, 158, 255, 0.2);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(74, 158, 255, 0.3);
}

.sidebar-logo {
    height: 45px;
    width: auto;
}

.close-sidebar {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(74, 158, 255, 0.3);
    transform: rotate(90deg);
}

.sidebar-links {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 25px;
    color: var(--accent-color);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(74, 158, 255, 0.15);
    color: var(--text-primary);
    transform: translateX(5px);
}

.sidebar-social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar-social a:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* =========================================
   OVERLAY
   ========================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   MAIN NAVBAR (60% Transparent Grey)
   ========================================= */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 50px;
    perspective: 1000px;
}

.logo-image {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.person-image {
    opacity: 0;
    transform: rotateY(90deg) scale(0.5);
}

.logo.flipped .logo-image:first-child {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.5);
}

.logo.flipped .person-image {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 0.5s; }
.floating-icon:nth-child(3) { animation-delay: 1s; }
.floating-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    animation-play-state: paused;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================================
   HERO SECTION - FIXED
   ========================================= */
.hero {
    margin-top: 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    animation: fadeInUp 1s ease;
    max-width: 800px;
    width: 100%;
}

.hero-greeting {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.image-toggle {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 1.5rem auto;
    cursor: pointer;
    perspective: 1000px;
}

.toggle-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 10px 30px rgba(74, 158, 255, 0.4));
}

.toggle-image.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    z-index: 2;
}

.toggle-image:not(.active) {
    opacity: 0;
    transform: rotateY(90deg) scale(0.5);
    z-index: 1;
}

.toggle-hint {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.image-toggle:hover .toggle-hint {
    opacity: 1;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00d4ff 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 158, 255, 0.5);
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills {
    padding: 3rem 0;
    background: #1a1a1a;
    overflow: hidden;
    position: relative;
}

.skills::before,
.skills::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills::before {
    left: 0;
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.skills::after {
    right: 0;
    background: linear-gradient(to left, #1a1a1a, transparent);
}

.skills-container {
    display: flex;
    width: fit-content;
    animation: scrollLeft 25s linear infinite;
}

.skills-container:hover {
    animation-play-state: paused;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-width: 130px;
}

.skill-item i {
    font-size: 2.8rem;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-item:hover {
    color: var(--accent-color);
}

.skill-item:hover i {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   SECTION STYLES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #00d4ff);
    border-radius: 2px;
}

.section-image {
    max-width: 250px;
    height: auto;
    display: inline-block;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: 5rem 0;
    background: #0a0a0a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.1);
    cursor: pointer;
    position: relative;
}

.about-image .image-placeholder::after {
    content: 'Click to change';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(74, 158, 255, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.about-image .image-placeholder:hover::after {
    opacity: 1;
}

/* About Image Toggle Specific Styles */
.about-img-toggle .about-toggle-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.about-toggle-img.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 2;
}

.about-toggle-img:not(.active) {
    opacity: 0;
    transform: scale(0.8) rotateY(-20deg);
    z-index: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects {
    padding: 5rem 0;
    background: #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(74, 158, 255, 0.3);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #1a2a3a 0%, #2d3a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-color);
}

.project-card h3 {
    padding: 1.3rem 1.3rem 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tech-stack {
    padding: 0 1.3rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.3rem;
}

.tech-stack span {
    background: rgba(74, 158, 255, 0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.project-links {
    padding: 0 1.3rem 1.3rem;
    display: flex;
    gap: 0.8rem;
}

.btn-outline,
.btn-primary {
    padding: 0.65rem 1.3rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: #3a8eef;
    transform: translateY(-2px);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    padding: 5rem 0;
    background: #0a0a0a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 158, 255, 0.3);
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: 5rem 0;
    background: #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(45, 45, 45, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 158, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

.info-item.clickable:hover {
    background: rgba(45, 45, 45, 0.6);
    transform: translateX(8px);
    border-color: rgba(74, 158, 255, 0.3);
}

.info-item i {
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

.fa-youtube { color: #ff0000; }
.fa-envelope { color: #ea4335; }
.fa-linkedin-in { color: #0077b5; }
.fa-instagram { color: #e4405f; }
.fa-phone { color: #4a9eff; }

.info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.contact-form {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(45, 45, 45, 0.6);
    border: 2px solid rgba(74, 158, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.15);
    background: rgba(45, 45, 45, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #00d4ff 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(74, 158, 255, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    display: block;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    display: block;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #0a0a0a;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* LARGE TABLETS & SMALL LAPTOPS (769px - 1024px) */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    .navbar { width: 95%; padding: 0.8rem 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .hero { margin-top: 90px; }
    .about-content, .contact-content { gap: 2.5rem; }
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* TABLETS (768px) */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .navbar { padding: 0.75rem 1.2rem; }
    .nav-links, .social-icons { display: none; }
    .hamburger { display: flex; }
    .sidebar { width: 260px; left: -260px; }
    .hero { margin-top: 80px; min-height: 75vh; padding: 2rem 1.2rem; }
    .hero-greeting { font-size: 1.5rem; }
    .image-toggle { width: 180px; height: 180px; }
    .hero-tagline { font-size: 1.1rem; }
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
    .about { padding: 4rem 0; }
    .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image .image-placeholder { height: 350px; max-width: 400px; margin: 0 auto; }
    .stats { justify-content: center; gap: 2rem; }
    .projects { padding: 4rem 0; }
    .projects-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .services { padding: 4rem 0; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .contact { padding: 4rem 0; }
    .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form { padding: 1.8rem; }
    .footer-content { flex-direction: column; gap: 1.2rem; text-align: center; }
}

/* MOBILE DEVICES (481px - 640px) */
@media (max-width: 640px) {
    html { font-size: 14px; }
    .navbar { padding: 0.7rem 1rem; width: 96%; }
    .hero { margin-top: 75px; padding: 1.8rem 1rem; }
    .hero-greeting { font-size: 1.4rem; }
    .image-toggle { width: 150px; height: 150px; }
    .hero-tagline { font-size: 1rem; margin-bottom: 1.5rem; }
    .cta-button { padding: 0.9rem 2rem; font-size: 0.95rem; }
    .skills { padding: 2.5rem 0; }
    .skill-item { padding: 1rem 1.5rem; min-width: 110px; }
    .skill-item i { font-size: 2.3rem; }
    .skill-item span { font-size: 0.8rem; }
    .section-title { font-size: 1.8rem; }
    .about-text h3 { font-size: 1.5rem; }
    .about-image .image-placeholder { height: 300px; }
    .stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .projects-grid { gap: 1.5rem; }
    .project-image { height: 200px; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-info h3 { font-size: 1.5rem; }
    .info-item { padding: 1rem; }
    .contact-form { padding: 1.5rem; }
    .form-group input, .form-group textarea { padding: 0.9rem 1rem; font-size: 0.9rem; }
    .submit-btn { padding: 1rem; font-size: 0.95rem; }
}

/* SMALL MOBILE (320px - 480px) */
@media (max-width: 480px) {
    html { font-size: 13px; }
    .navbar { padding: 0.65rem 0.9rem; width: 97%; border-radius: 40px; }
    .logo { width: 42px; height: 42px; }
    .hero { margin-top: 70px; min-height: 70vh; padding: 1.5rem 1rem; }
    .hero-greeting { font-size: 1.3rem; }
    .image-toggle { width: 120px; height: 120px; }
    .hero-tagline { font-size: 0.95rem; margin-bottom: 1.3rem; }
    .cta-button { padding: 0.85rem 1.8rem; font-size: 0.9rem; }
    .skills { padding: 2rem 0; }
    .skill-item { padding: 0.9rem 1.3rem; min-width: 100px; gap: 0.4rem; }
    .skill-item i { font-size: 2rem; }
    .skill-item span { font-size: 0.75rem; }
    .container { padding: 0 1.2rem; }
    .section-title { font-size: 1.6rem; margin-bottom: 2rem; }
    .about { padding: 3rem 0; }
    .about-content { gap: 2rem; }
    .about-text h3 { font-size: 1.4rem; margin-bottom: 1rem; }
    .about-text p { font-size: 0.9rem; line-height: 1.6; }
    .about-image .image-placeholder { height: 280px; }
    .stats { gap: 1.3rem; }
    .stat-item h4 { font-size: 1.8rem; }
    .stat-item p { font-size: 0.8rem; }
    .projects, .services, .contact { padding: 3rem 0; }
    .project-card h3 { padding: 1.1rem 1.1rem 0.4rem; font-size: 1.15rem; }
    .project-card p { padding: 0 1.1rem; font-size: 0.85rem; }
    .tech-stack { padding: 0 1.1rem; }
    .tech-stack span { font-size: 0.75rem; padding: 0.2rem 0.6rem; }
    .project-links { padding: 0 1.1rem 1.1rem; flex-direction: column; }
    .btn-outline, .btn-primary { padding: 0.6rem 1.1rem; font-size: 0.8rem; justify-content: center; }
    .service-card { padding: 1.5rem 1.2rem; }
    .service-card i { font-size: 2.5rem; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.85rem; }
    .contact-info h3 { font-size: 1.4rem; }
    .contact-info > p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .info-item { padding: 0.9rem; gap: 0.9rem; }
    .info-item i { font-size: 1.2rem; }
    .info-item h4 { font-size: 0.95rem; }
    .info-item p { font-size: 0.83rem; }
    .contact-form { padding: 1.3rem; }
    .form-group { margin-bottom: 1rem; }
    .form-group input, .form-group textarea { padding: 0.85rem 0.95rem; font-size: 0.88rem; }
    .submit-btn { padding: 0.95rem; font-size: 0.9rem; }
    footer { padding: 1.5rem 0; }
    .footer-left p { font-size: 0.82rem; }
    .footer-social a { width: 33px; height: 33px; font-size: 1rem; }
}

/* EXTRA SMALL MOBILE (320px) */
@media (max-width: 360px) {
    html { font-size: 12px; }
    .navbar { padding: 0.6rem 0.8rem; }
    .hero-greeting { font-size: 1.2rem; }
    .image-toggle { width: 100px; height: 100px; }
    .hero-tagline { font-size: 0.9rem; }
    .cta-button { padding: 0.75rem 1.4rem; font-size: 0.85rem; }
    .skill-item { padding: 0.8rem 1.1rem; min-width: 90px; }
    .skill-item i { font-size: 1.8rem; }
    .about-image .image-placeholder { height: 250px; }
    .project-image { height: 180px; font-size: 3rem; }
}

/* LANDSCAPE MOBILE */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 70vh; padding: 1.5rem; }
    .sidebar { width: 240px; left: -240px; }
}

/* PRINT STYLES */
@media print {
    .navbar, .sidebar, .hamburger, .social-icons, .footer, .cta-button, .project-links {
        display: none !important;
    }
    body { background: white; color: black; }
    .hero { margin-top: 0; min-height: auto; padding: 2rem; }
    .project-card, .service-card { break-inside: avoid; page-break-inside: avoid; }
}