* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    color: #000;
    overflow-x: hidden;
    cursor: none;
}

/* Custom cursor - Desktop only */
.custom-cursor,
.cursor-dot {
    display: none;
}

@media (min-width: 1024px) {
    .custom-cursor {
        display: block;
        width: 20px;
        height: 20px;
        border: 2px solid #000;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: all 0.1s ease;
        mix-blend-mode: difference;
    }

    .cursor-dot {
        display: block;
        width: 6px;
        height: 6px;
        background: #000;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
    }

    body {
        cursor: none;
    }
}

@media (max-width: 1023px) {
    body {
        cursor: auto;
    }
}

/* Grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 2px, transparent 2px);
    background-size: 100px 100px;
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid #000;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1001;
}

.logo:hover {
    transform: translateX(5px);
}

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

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.nav-links a::before {
    content: '[ ';
    opacity: 0.5;
}

.nav-links a::after {
    content: ' ]';
    opacity: 0.5;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    opacity: 1;
}

.nav-links a:hover {
    letter-spacing: 3px;
}

.contact-me-btn {
    border: 2px solid #000;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.contact-me-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.3s;
    z-index: -1;
}

.contact-me-btn:hover {
    color: #f5f5f5;
}

.contact-me-btn:hover::before {
    left: 0;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #000;
    transition: all 0.3s;
}

.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);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #f5f5f5;
    border-left: 2px solid #000;
    z-index: 999;
    transition: right 0.3s ease;
    padding-top: 100px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-links a {
    display: block;
    padding: 1.5rem 2rem;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.mobile-nav-links a:hover {
    background: #000;
    color: #f5f5f5;
    padding-left: 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
}

.label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

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

.main-title {
    font-size: clamp(2rem, 10vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    position: relative;
    word-wrap: break-word;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.services {
    font-size: 1.2rem;
    line-height: 2;
    letter-spacing: 2px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
}

.service-item:hover {
    transform: translateX(20px);
}

.service-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.service-item:hover .service-icon {
    background: #000;
    color: #f5f5f5;
    transform: rotate(90deg);
}

.description {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 2rem;
    opacity: 0.8;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1/1;
    border: 2px solid #000;
    position: relative;
    overflow: hidden;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.3), transparent);
    transition: left 0.5s;
}

.profile-img:hover::before {
    left: 100%;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s;
}

.profile-img:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 350px;
}

.stat-box {
    border: 2px solid #000;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    background: #f5f5f5;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.3s;
    z-index: -1;
}

.stat-box:hover::before {
    left: 0;
}

.stat-box:hover {
    color: #f5f5f5;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Sections */
.section {
    padding: 8rem 4rem;
    border-top: 2px solid #000;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-number {
    font-size: 1rem;
    letter-spacing: 3px;
    opacity: 0.5;
}

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

.about-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 2;
}

.about-text p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.skills-category {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    border-left: 2px solid #000;
    transition: all 0.3s;
}

.skills-category:hover {
    border-left-width: 4px;
    padding-left: 3rem;
}

.skills-category-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.skills-list {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.8;
}

/* Projects */
.project-item {
    border: 2px solid #000;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s;
    background: #f5f5f5;
}

.project-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent #000 transparent;
    transition: all 0.3s;
}

.project-item:hover::after {
    border-width: 0 0 60px 60px;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.project-tech {
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

.project-desc {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.project-link:hover {
    gap: 1rem;
}

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.connect-title {
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: clamp(1rem, 2vw, 1.1rem);
    padding: 1rem 0;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    letter-spacing: 2px;
    transition: all 0.3s;
    pointer-events: none;
    opacity: 0.6;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.5rem;
    font-size: 0.8rem;
    opacity: 1;
}

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

.submit-btn {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    padding: 1.5rem 3rem;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.9rem, 2vw, 1rem);
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    align-self: center;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.3s;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: #f5f5f5;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    letter-spacing: 1px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    background: #000;
    color: #f5f5f5;
    transform: rotate(360deg);
}

footer {
    text-align: center;
    padding: 3rem;
    border-top: 2px solid #000;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    letter-spacing: 3px;
    opacity: 0.6;
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOut 1s ease 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.loading-text {
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 5px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==================== TABLET RESPONSIVE ==================== */
@media (max-width: 1024px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .hero, .section {
        padding: 6rem 2rem 4rem;
    }

    .hero-content {
        gap: 3rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .project-item {
        padding: 2rem;
    }

    .stats-grid {
        gap: 0.75rem;
    }
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

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

    .contact-me-btn {
        display: none;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }

    .label {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }

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

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

    .services {
        font-size: 1rem;
    }

    .service-item {
        padding: 0.3rem 0;
    }

    .service-item span {
        font-size: 0.9rem;
    }

    .service-item:hover {
        transform: translateX(10px);
    }

    .description {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    .profile-section {
        align-items: center;
    }

    .profile-img {
        max-width: 280px;
    }

    .stats-grid {
        max-width: 280px;
        gap: 0.5rem;
    }

    .stat-box {
        padding: 1.5rem 1rem;
    }

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

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

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

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

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

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

    .about-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .about-text p {
        margin-bottom: 1.5rem;
    }

    .skills-category {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .skills-category:hover {
        padding-left: 2rem;
    }

    .skills-category-title {
        font-size: 0.8rem;
    }

    .skills-list {
        font-size: 0.95rem;
    }

    .project-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .project-item:hover {
        transform: translateY(-5px);
        box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
    }

    .project-header {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

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

    .project-tech {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }

    .project-desc {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

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

    .contact-form {
        gap: 1.5rem;
    }

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

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

    .submit-btn {
        padding: 1.2rem 2.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .contact-item {
        font-size: 0.85rem;
    }

    footer {
        padding: 2rem 1rem;
        font-size: 0.7rem;
    }

    .grid-bg {
        background-size: 50px 50px;
    }
}

/* ==================== SMALL MOBILE ==================== */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

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

    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .service-item span {
        font-size: 0.85rem;
    }

    .profile-img {
        max-width: 240px;
    }

    .stats-grid {
        max-width: 240px;
        grid-template-columns: 1fr;
    }

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

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

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

    .contact-item span {
        word-break: break-all;
        font-size: 0.75rem;
    }
}

/* ==================== LARGE DESKTOP ==================== */
@media (min-width: 1440px) {
    nav {
        padding: 2rem 6rem;
    }

    .hero, .section {
        padding: 8rem 6rem 4rem;
    }

    .hero-content {
        gap: 6rem;
    }

    .about-grid {
        gap: 6rem;
    }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 2rem 2rem;
    }

    .main-title {
        margin-bottom: 1.5rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .section {
        padding: 4rem 2rem;
    }
}