/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-logo:hover .logo-glow {
    opacity: 0.3;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #00ffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

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

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: title-reveal 1s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.main-title {
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    color: #00ffff !important; /* Fallback color */
    display: block;
    position: relative;
    opacity: 1 !important; /* Override title-line opacity */
    text-align: center;
    margin: 0 auto;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .title-line.main-title {
        background: none !important;
        color: #00ffff !important;
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

/* Ensure the text is visible even without gradient support */
.title-line.main-title {
    color: #00ffff !important;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

@keyframes title-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s ease 0.8s forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s ease 1s forwards;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-glow {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #00ffff;
    font-size: 0.8rem;
    opacity: 0;
    animation: fade-in 1s ease 1.5s forwards;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #00ffff, transparent);
    animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    margin: 0 auto;
    border-radius: 2px;
}

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

.about-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 10s linear infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cube-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.front { transform: rotateY(0deg) translateZ(100px); }
.back { transform: rotateY(180deg) translateZ(100px); }
.right { transform: rotateY(90deg) translateZ(100px); }
.left { transform: rotateY(-90deg) translateZ(100px); }
.top { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: #0a0a0a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    position: relative;
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 1rem;
}

.project-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.react-tag {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.05) 0%, rgba(0, 255, 255, 0.05) 100%);
}

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

.contact-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00ffff;
    margin-bottom: 1rem;
}

.contact-description {
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cccccc;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #00ffff;
}

.contact-icon {
    font-size: 1.2rem;
}

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

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-input::placeholder {
    color: #888;
}

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

.form-submit {
    align-self: flex-start;
}

/* Footer */
.footer {
    background: #000;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 3rem 0 1rem;
}

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

.footer-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00ffff;
}

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

.social-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00ffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: #888;
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 30px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 4.5rem);
    }

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

    .about-content {
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .tech-cube {
        width: 180px;
        height: 180px;
    }

    .cube-face {
        width: 180px;
        height: 180px;
    }

    .front { transform: rotateY(0deg) translateZ(90px); }
    .back { transform: rotateY(180deg) translateZ(90px); }
    .right { transform: rotateY(90deg) translateZ(90px); }
    .left { transform: rotateY(-90deg) translateZ(90px); }
    .top { transform: rotateX(90deg) translateZ(90px); }
    .bottom { transform: rotateX(-90deg) translateZ(90px); }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        z-index: 999;
    }

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

    .nav-menu {
        gap: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
        gap: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .about {
        padding: 6rem 0;
    }

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

    .about-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .projects {
        padding: 6rem 0;
    }

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

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact {
        padding: 6rem 0;
    }

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

    .contact-title {
        font-size: 1.5rem;
    }

    .form {
        gap: 1rem;
    }

    .form-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-social {
        gap: 1.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        height: 55px;
        padding: 0 10px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-menu {
        top: 55px;
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

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

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
        gap: 0.8rem;
    }

    .title-line {
        margin-bottom: 0.5rem;
        display: block;
    }

    .title-line.main-title {
        margin-bottom: 0.8rem;
        padding: 0.3rem 0;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        max-width: 250px;
    }

    .scroll-indicator {
        bottom: 1rem;
        font-size: 0.7rem;
    }

    .scroll-line {
        height: 20px;
    }

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

    .about {
        padding: 4rem 0;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .tech-cube {
        width: 120px;
        height: 120px;
    }

    .cube-face {
        width: 120px;
        height: 120px;
    }

    .cube-face::before {
        width: 40px;
        height: 40px;
    }

    .front { transform: rotateY(0deg) translateZ(60px); }
    .back { transform: rotateY(180deg) translateZ(60px); }
    .right { transform: rotateY(90deg) translateZ(60px); }
    .left { transform: rotateY(-90deg) translateZ(60px); }
    .top { transform: rotateX(90deg) translateZ(60px); }
    .bottom { transform: rotateX(-90deg) translateZ(60px); }

    .projects {
        padding: 4rem 0;
    }

    .projects-grid {
        gap: 1rem;
    }

    .project-card {
        max-width: 100%;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-content {
        gap: 1.5rem;
    }

    .contact-title {
        font-size: 1.3rem;
    }

    .contact-description {
        font-size: 0.9rem;
    }

    .contact-item {
        font-size: 0.9rem;
        gap: 0.8rem;
    }

    .contact-icon {
        font-size: 1rem;
    }

    .form-input {
        padding: 0.7rem;
        font-size: 0.8rem;
    }

    .form-textarea {
        min-height: 100px;
    }

    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo .logo-text {
        font-size: 1.1rem;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-social {
        gap: 1rem;
        flex-direction: column;
    }

    .social-link {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 8px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .hero-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
        line-height: 1.5;
        gap: 1rem;
    }

    .title-line {
        margin-bottom: 0.6rem;
    }

    .title-line.main-title {
        margin-bottom: 1rem;
        padding: 0.4rem 0;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        max-width: 220px;
    }

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

    .about {
        padding: 3rem 0;
    }

    .projects {
        padding: 3rem 0;
    }

    .contact {
        padding: 3rem 0;
    }

    .project-content {
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
    }

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

    .about,
    .projects,
    .contact {
        padding: 3rem 0;
    }

    .nav-menu {
        top: 55px;
        padding: 1rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo,
    .section-title,
    .project-title,
    .contact-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
    