/* ===== CSS Variables ===== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f1f5f9;
    --gray-text: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(148, 163, 184, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Background Canvas ===== */
#geometricCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: #020617;
}

/* ===== Intro Splash Screen ===== */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.intro-content {
    text-align: center;
}

.intro-greeting {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 2px;
}

.intro-lang {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.5s ease-out;
}

body:not(.intro-complete) {
    overflow: hidden;
}

body:not(.intro-complete) .navbar,
body:not(.intro-complete) .hero,
body:not(.intro-complete) section {
    opacity: 0;
}

body.intro-complete .navbar,
body.intro-complete .hero,
body.intro-complete section {
    animation: fadeInContent 1s ease-out forwards;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    z-index: 10002;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 8px;
}

.logo-image:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link.resume-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
}

.nav-link.resume-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

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

.nav-link.resume-link i {
    margin-right: 5px;
}

/* ===== Hamburger Menu - FIXED ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 10001;
    position: relative;
    padding: 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: var(--transition);
    display: block;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.4);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    transform: translateY(-180px);
    z-index: 1;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    min-height: 2rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.greeting::after {
    display: none:
}

.name {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow:
        0 0 80px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(99, 102, 241, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    text-transform: uppercase;
}

.name::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.8) 20%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(236, 72, 153, 0.8) 80%,
        transparent 100%
    );
}

.hero-logo {
    display: block;
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#typedText {
    display: inline-block;
    min-height: 1.5em;
    color: var(--light-text);
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: #fff;
    margin-left: 2px;
    animation: blink 0.8s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1.15rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-resume {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid transparent;
}

.btn-resume:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-resume i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator:active {
    transform: translateX(-50%) scale(0.95);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
    background: rgba(99, 102, 241, 0.1);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== About Section ===== */
.about {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-background-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%),
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    z-index: 0;
    transform: translateZ(0);
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-legendary-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 8rem;
    align-items: center;
    margin-top: 4rem;
}

.about-photo-section {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: -150px;
}

.photo-container {
    position: relative;
    width: 800px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.particle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.particle-3 { bottom: 20%; left: 15%; animation-delay: 1s; }
.particle-4 { bottom: 15%; right: 20%; animation-delay: 1.5s; }
.particle-5 { top: 50%; left: 5%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

.photo-3d-frame {
    position: relative;
    width: 700px;
    height: 700px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.photo-3d-frame:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateZ(50px);
}

.profile-epic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.1) contrast(1.05);
    transition: var(--transition);
}

.photo-3d-frame:hover .profile-epic {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.05);
}

.photo-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.photo-3d-frame:hover .photo-glow {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

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

.rotating-ring {
    position: absolute;
    width: 800px;
    height: 800px;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

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

.floating-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: floatIcon 3s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.floating-icon:hover {
    transform: scale(1.2) translateY(-5px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.icon-1 { top: -10%; left: 50%; transform: translateX(-50%); }
.icon-2 { top: 20%; right: -10%; }
.icon-3 { top: 85%; right: -5%; }
.icon-4 { bottom: -10%; left: 50%; transform: translateX(-50%); }
.icon-5 { top: 85%; left: -5%; }
.icon-6 { top: 20%; left: -10%; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.about-content-section {
    position: relative;
}

.bio-text {
    font-size: 1.3rem;
    color: white;
    line-height: 1.8;
    max-width: 650px;
    min-height: 200px;
}

.about-typing-text {
    display: inline;
}

.bio-text::after {
    content: '|';
    color: #6366F1;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    margin-bottom: 2.5rem;
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.about-description p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-text);
    margin-bottom: 1.25rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.skill-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    transition: var(--transition);
}

.skill-highlight-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.skill-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--light-text);
}

.skill-text p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.about-actions .btn i {
    margin-right: 0.5rem;
}

/* ===== Skills Section ===== */
.skills {
    background: rgba(15, 23, 42, 0.5);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    color: var(--light-text);
    font-size: 0.875rem;
    transition: var(--transition);
}

/* ===== Projects Section ===== */
.projects {
    padding: 120px 0;
}

.projects-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.project-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.project-reverse {
    grid-template-columns: 1fr 1.2fr;
}

.project-reverse .project-device {
    order: 2;
}

.project-reverse .project-info {
    order: 1;
    text-align: right;
}

.project-reverse .project-tags,
.project-reverse .project-links {
    justify-content: flex-end;
}

.project-device {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.macbook-container {
    width: 100%;
    max-width: 650px;
    position: relative;
}

.macbook-lid {
    transform-origin: bottom;
    transform: rotateX(-95deg);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding-top: 62%;
}

.macbook-screen {
    position: absolute;
    top: 4%;
    left: 4%;
    right: 4%;
    bottom: 8%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #2a2a2a;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    opacity: 0.3;
    transition: opacity 1s ease-out 0.8s;
}

.macbook-screen.screen-on {
    opacity: 1;
}

.screen-bezel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #1a1a1a;
    border-radius: 12px;
    pointer-events: none;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.macbook-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8%;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    border-radius: 0 0 12px 12px;
}

.macbook-bottom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 5px;
    background: #0a0a0a;
    border-radius: 3px;
}

.macbook-base {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 12px;
    background: linear-gradient(to bottom, #2a2a2a, #0a0a0a);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.smart-tv-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.tv-frame {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 8px solid #0a0a0a;
}

.tv-screen {
    position: absolute;
    top: 4%;
    left: 3%;
    right: 3%;
    bottom: 4%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.tv-screen.tv-on {
    opacity: 1;
    animation: tvTurnOn 1.5s ease-out;
}

@keyframes tvTurnOn {
    0% {
        opacity: 0;
        transform: scaleY(0.1) scaleX(0.9);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.5) scaleX(0.95);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
    }
}

.tv-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 50%,
        rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    transition: opacity 1s ease-out;
}

.tv-stand {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border-radius: 8px 8px 0 0;
}

.tv-base {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(to bottom, #2a2a2a, #0a0a0a);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.project-info {
    padding: 2rem 0;
}

.project-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 700;
}

.project-info p {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.6rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.project-tags span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.project-link i {
    font-size: 1.1rem;
}

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

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

/* ===== Contact Section ===== */
.contact {
    background: rgba(15, 23, 42, 0.5);
}

.contact-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1.15rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-text);
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-size: 1.1rem;
    text-align: center;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    display: block;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.info-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.2rem auto;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
}

.contact-info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.info-content h4 {
    font-size: 1.15rem;
    color: var(--light-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.animated-text {
    font-size: 1.15rem;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
    min-height: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    padding: 0.3rem 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left p {
    color: var(--gray-text);
    font-size: 1.05rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-logo {
    display: inline-block;
    transition: var(--transition);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 8px;
}

.footer-logo-img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 968px) {
    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 0;
        z-index: 9999;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .logo-image {
        height: 30px !important;
    }

    .hero-logo {
        max-width: 500px !important;
    }

    .footer-logo-img {
        height: 40px !important;
    }

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

    .about-photo-section {
        margin-left: 0;
        justify-content: center;
    }

    .photo-container {
        width: 300px !important;
        height: 300px !important;
    }

    .photo-3d-frame {
        width: 250px !important;
        height: 250px !important;
    }

    .rotating-ring {
        width: 320px !important;
        height: 320px !important;
    }

    .floating-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }

    .project-card,
    .project-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-reverse .project-device {
        order: 1;
    }

    .project-reverse .project-info {
        order: 2;
        text-align: left;
    }

    .project-reverse .project-tags,
    .project-reverse .project-links {
        justify-content: flex-start;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .intro-greeting {
        font-size: 4rem;
    }

    .intro-lang {
        font-size: 1rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo-image {
        height: 25px !important;
    }

    .hero {
        min-height: 100vh;
        padding: 1rem;
    }

    .hero-content {
        transform: translateY(-30px);
    }

    .greeting {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .name {
        font-size: 2.5rem !important;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .hero-logo {
        max-width: 500px !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        min-height: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-indicator span {
        width: 25px;
        height: 40px;
    }

    .about {
        padding: 80px 0;
    }

    .bio-text {
        font-size: 1.1rem !important;
        line-height: 1.6;
        max-width: 100%;
        padding: 0 1rem;
    }

    .about-content-section {
        padding: 1rem;
    }

    .skill-highlights {
        grid-template-columns: 1fr;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-actions .btn {
        width: 100%;
    }

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

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .projects {
        padding: 80px 0;
    }

    .projects-showcase {
        gap: 4rem;
    }

    .project-number {
        font-size: 3rem;
    }

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

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

    .macbook-container,
    .smart-tv-container {
        max-width: 100%;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }

    .contact {
        padding: 80px 0;
    }

    .contact-form-wrapper {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .animated-text {
        font-size: 1rem;
    }

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

    .projects-intro,
    .contact-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        order: 2;
    }

    .footer-social {
        order: 1;
    }

    .footer-logo-img {
        height: 35px !important;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .logo-image {
        height: 25px !important;
    }

    .hero-logo {
        max-width: 300px !important;
    }

    .footer-logo-img {
        height: 35px !important;
    }
}

@media (max-width: 375px) {
    .name {
        font-size: 2rem !important;
    }

    .greeting {
        font-size: 1rem;
    }

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

    .photo-container {
        width: 250px !important;
        height: 250px !important;
    }

    .photo-3d-frame {
        width: 200px !important;
        height: 200px !important;
    }

    .bio-text {
        font-size: 1rem !important;
    }
}