/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

/* Hide scrollbar but keep scrolling functionality */
body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    animation: fadeInDown 1s ease-out;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 50px;
}

.nav-logo img {
    height: 50px;
    width: auto;
    max-width: 50px;
    min-width: 40px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    opacity: 1;
    visibility: visible;
    transform: rotate(0deg);
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #64c8ff;
    text-transform: uppercase;
}

.nav-logo:hover img {
    transform: rotate(360deg) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.6));
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #64c8ff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #64c8ff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-resume-btn {
    padding: 0.5rem 1.2rem !important;
    border: 1px solid rgba(100, 200, 255, 0.5) !important;
    border-radius: 4px;
    background: rgba(100, 200, 255, 0.1);
    color: #64c8ff !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease;
}

.nav-resume-btn::after {
    display: none;
}

.nav-resume-btn:hover {
    background: rgba(100, 200, 255, 0.2) !important;
    border-color: #64c8ff !important;
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #64c8ff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: flex-start;
    padding-top: 120px; /* Space for fixed navigation bar */
    overflow: hidden;
    box-sizing: border-box;
    perspective: 1000px; /* 3D perspective */
}

/* Background with overlay */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

/* Mouse follower glow effect */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    left: var(--glow-x, 50%);
    top: var(--glow-y, 50%);
    transform: translate(-50%, -50%);
}

.hero:hover::before {
    opacity: 1;
}

/* Content container */
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 4rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* ============================================
   LEFT SIDE - TEXT CONTENT
   ============================================ */
.hero-content {
    animation: fadeInLeft 1.2s ease-out;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.brand-logo {
    height: 30px;
    width: auto;
    max-width: 30px;
    min-width: 25px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    opacity: 1;
    visibility: visible;
    transform: rotate(0deg);
}

.brand-text:hover .brand-logo {
    transform: rotate(360deg) scale(1.15);
    filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.7));
}

.brand-text span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: #64c8ff;
    text-transform: uppercase;
}

.hero-name {
    margin-bottom: 1.5rem;
}

.hero-name h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.2);
}

.hero-name h1:first-child {
    animation: fadeInLeft 1.2s ease-out 0.2s both;
}

.hero-name h1:last-child {
    animation: fadeInLeft 1.2s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: #b0b0b0;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    animation: fadeInLeft 1.2s ease-out 0.6s both;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: #888;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 500px;
    letter-spacing: 0.02em;
    animation: fadeInLeft 1.2s ease-out 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInLeft 1.2s ease-out 1s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: #64c8ff;
    border: 1px solid #64c8ff;
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: rgba(100, 200, 255, 0.1);
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: #b0b0b0;
    border: 1px solid rgba(176, 176, 176, 0.3);
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-resume {
    background: transparent;
    color: #64c8ff;
    border: 1px solid rgba(100, 200, 255, 0.6);
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.15);
}

.btn-resume:hover {
    background: rgba(100, 200, 255, 0.15);
    border-color: #64c8ff;
    box-shadow: 0 0 25px rgba(100, 200, 255, 0.35);
    transform: translateY(-2px);
}

/* ============================================
   RIGHT SIDE - PORTRAIT IMAGE
   ============================================ */
.hero-image {
    position: relative;
    animation: fadeInRight 1.2s ease-out;
    margin-top: 0;
    padding-top: 0;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-image-wrapper img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 1;
    border-radius: 8px;
    filter: contrast(1.05) brightness(0.95);
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), filter 0.15s ease-out;
    will-change: transform;
    backface-visibility: hidden; /* Prevents flickering */
    transform-origin: center center; /* Ensures scaling from center */
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    position: relative;
    padding: 8rem 4rem;
    background: #000;
    min-height: 100vh;
    perspective: 1000px; /* 3D perspective */
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 1s ease-out;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.2);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #888;
    letter-spacing: 0.05em;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    transform-style: preserve-3d;
}

.project-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.7) contrast(1.1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(0.9) contrast(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 1;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.project-info {
    width: 100%;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-info p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #64c8ff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    z-index: 2;
    transition: all 0.4s ease;
    pointer-events: none;
    opacity: var(--glow-opacity, 0);
}

.project-card:hover::before {
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow: 0 0 30px rgba(100, 200, 255, calc(0.3 * var(--glow-opacity, 1)));
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABOUT ME SECTION
   ============================================ */
.about {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 8rem 4rem;
    background: #000;
    min-height: 100vh;
    overflow: hidden;
}

/* Background with overlay */
.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.about-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 1s ease-out;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-description p {
    font-size: 1.05rem;
    font-weight: 300;
    color: #b0b0b0;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.skills-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #64c8ff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(100, 200, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #64c8ff, #8a2be2);
    border-radius: 3px;
    transition: width 1s ease-out;
    position: relative;
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

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

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

.about-images {
    position: relative;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent horizontal scroll on mobile */
* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8) contrast(1.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    z-index: 2;
    transition: all 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::before {
    border-color: rgba(100, 200, 255, 0.3);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 8rem 4rem;
    background: #000;
    min-height: 100vh;
    overflow: hidden;
}

/* Background with overlay */
.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: blur(8px);
    transform: scale(1.1);
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.contact-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 1s ease-out;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.info-item p {
    font-size: 1.05rem;
    font-weight: 300;
    color: #b0b0b0;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(100, 200, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: rgba(100, 200, 255, 0.3);
    background: rgba(100, 200, 255, 0.05);
    transform: translateX(5px);
}

.detail-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64c8ff;
    flex-shrink: 0;
}

.detail-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #64c8ff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-text p {
    font-size: 1rem;
    font-weight: 300;
    color: #b0b0b0;
    letter-spacing: 0.02em;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #64c8ff;
    border-color: #64c8ff;
    background: rgba(100, 200, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 200, 255, 0.3);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64c8ff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    background: rgba(100, 200, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #64c8ff;
    background: rgba(100, 200, 255, 0.1);
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

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

.contact-form .btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
/* Spider Web Animation - Interactive */
.footer {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

/* Footer Background Image */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(2px);
}


.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer p {
    color: #888;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
    z-index: 1;
}

.footer p span {
    color: #64c8ff;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-name h1 {
        font-size: 4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 500px;
    }

    .projects {
        padding: 6rem 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about {
        padding: 6rem 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        padding: 6rem 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-logo {
        height: 35px;
    }

    .nav-logo img {
        height: 35px;
        max-width: 35px;
    }

    .nav-logo span {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(100, 200, 255, 0.2);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    }

    .nav-links a:hover {
        padding-left: 1rem;
        border-left: 3px solid #64c8ff;
    }

    .nav-resume-btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        padding: 1rem !important;
    }

    .brand-logo {
        height: 25px;
    }

    .brand-text span {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
        align-items: stretch;
        justify-content: flex-start;
        padding-top: 100px;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        padding: 2rem 2rem 0;
        gap: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        align-items: center;
        justify-content: space-between;
        min-height: calc(100vh - 100px);
    }

    .hero-content {
        order: 1 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hero-image {
        order: 2 !important;
        margin-bottom: 0;
        margin-top: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: relative;
        flex-shrink: 0;
    }

    .hero-name {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 0.75rem;
    }

    .hero-tagline {
        margin-bottom: 1rem;
    }

    .hero-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
        position: relative;
    }

    .projects {
        padding: 4rem 2rem;
    }

    .projects-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about {
        padding: 4rem 2rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .about-header {
        margin-bottom: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        order: 2;
    }

    .about-images {
        order: 1;
        margin-bottom: 2rem;
    }

    .about-description p {
        font-size: 1rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 4rem 2rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .contact-container {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .contact-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        justify-items: stretch;
        box-sizing: border-box;
    }

    .contact-info {
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .info-item {
        text-align: center;
    }

    .info-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .info-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contact-details {
        gap: 1.5rem;
    }

    .detail-item {
        padding: 1.25rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .detail-icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    .detail-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .detail-text p {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .social-links {
        gap: 1rem;
        text-align: center;
    }

    .social-links h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .social-icons {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .hero-name h1 {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-image-wrapper {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        height: 30px;
        gap: 0.5rem;
    }

    .nav-logo img {
        height: 30px;
        max-width: 30px;
    }

    .nav-logo span {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }

    .nav-links {
        width: 100%;
        right: -100%;
    }

    .nav-links.active {
        right: 0;
    }

    .brand-logo {
        height: 20px;
    }

    .brand-text {
        gap: 0.5rem;
    }

    .brand-text span {
        font-size: 0.7rem;
        letter-spacing: 0.25em;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.9rem 0;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 0;
        min-height: 100vh;
        height: 100vh;
        align-items: stretch;
        justify-content: flex-start;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        padding: 2rem 1rem 0;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        width: 100%;
        max-width: 100%;
        min-height: calc(100vh - 100px);
    }

    .hero-content {
        width: 100%;
        order: 1 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hero-image {
        width: 100%;
        order: 2 !important;
        margin-bottom: 0;
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: relative;
        flex-shrink: 0;
    }

    .hero-name h1 {
        font-size: 2rem;
        line-height: 1.2;
        letter-spacing: 0.08em;
    }

    .hero-name {
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .hero-image-wrapper {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image-wrapper img {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
        min-height: 44px; /* Better touch target */
    }

    .projects {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.8rem;
    }

    .about {
        padding: 3rem 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .about-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .about-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .about-text {
        width: 100%;
        order: 2;
    }

    .about-images {
        width: 100%;
        order: 1;
    }

    .about-description {
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-description p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .skills-section {
        width: 100%;
    }

    .skills-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .skills-title {
        font-size: 1.1rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }

    .contact {
        padding: 3rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .contact-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
    }

    .contact-header {
        margin-bottom: 2rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .contact-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        justify-items: stretch;
        box-sizing: border-box;
    }

    .contact-info {
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .info-item {
        text-align: center;
        padding: 0 0.5rem;
    }

    .info-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .info-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .contact-details {
        gap: 1.25rem;
        width: 100%;
    }

    .detail-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    .detail-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin: 0;
    }

    .detail-text {
        flex: 1;
        min-width: 0; /* Allow text to wrap */
    }

    .detail-text h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .detail-text p {
        font-size: 0.8rem;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }

    .social-links {
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    .social-links h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .social-icons {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        box-sizing: border-box;
    }

    .contact-form {
        gap: 1.2rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        margin: 0;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .form-group label {
        text-align: left;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .form-group {
        width: 100%;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .contact-form .btn {
        min-height: 48px; /* Better touch target */
        padding: 1rem 2rem;
        width: 100%;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    nav {
        padding: 0.5rem 0.75rem;
    }

    .nav-logo span {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 0;
        min-height: 100vh;
        height: 100vh;
        align-items: stretch;
        justify-content: flex-start;
    }

    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.5rem 0.75rem 0;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        min-height: calc(100vh - 90px);
    }

    .hero-content {
        order: 1 !important;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hero-image {
        order: 2 !important;
        margin-bottom: 0;
        margin-top: auto;
        flex-shrink: 0;
    }

    .hero-image-wrapper {
        max-width: 250px;
    }

    .hero-name {
        margin-bottom: 0.5rem;
    }

    .hero-name h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        padding: 0;
    }

    .contact {
        padding: 2rem 0.75rem;
    }

    .about {
        padding: 2rem 0.75rem;
    }

    .detail-item {
        padding: 0.875rem 0.5rem;
        gap: 0.75rem;
    }

    .detail-icon {
        width: 36px;
        height: 36px;
    }

    .detail-text p {
        font-size: 0.75rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .info-item h3 {
        font-size: 1.1rem;
    }

    .info-item p {
        font-size: 0.85rem;
    }
}
