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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-purple-dark: #6d28d9;
    --border-color: #2a2a2a;
    --grid-color: #1f1f1f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    body::before {
        background-size: 25px 25px;
    }
}

@media (max-width: 480px) {
    body::before {
        background-size: 20px 20px;
    }
}

/* Navigation Bar */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    position: relative;
    width: 100%;
}

.navbar-logo {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 120px;
    height: 120px;
    z-index: 1001;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.nav-container {
    display: flex;
    gap: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    touch-action: manipulation;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    padding: 120px 60px 60px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Left Section */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
    position: relative;
}

.content-wrapper {
    max-width: 500px;
}

.name {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.name-first {
    color: var(--accent-purple);
    animation: slideInFromLeft 0.8s ease-out;
}

.name-last {
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.accent-line {
    width: 80px;
    height: 4px;
    background: var(--accent-purple);
    margin: 15px 0 30px;
    border-radius: 2px;
    animation: slideInFromLeft 0.8s ease-out 0.4s both;
    transform-origin: left;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.tagline {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    min-height: 32px;
}

.tagline .highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.typewriter-text {
    color: var(--accent-purple);
    font-weight: 600;
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-purple);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-button {
    width: 56px;
    height: 56px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    cursor: pointer;
}

.social-button:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-button:hover .social-icon {
    transform: scale(1.1);
}

/* Buttons */
.btn-resume {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-resume:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

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

.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    background: var(--bg-secondary);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}


/* Right Section - Illustration */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-left: 40px;
    min-height: 400px;
}

.illustration-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 500px;
    transform-style: preserve-3d;
    overflow: visible;
}

/* Geometric Shapes */
.shape {
    position: absolute;
    border: 3px solid var(--accent-purple);
    border-radius: 8px;
    opacity: 0.6;
    --mouse-x: 0px;
    --mouse-y: 0px;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 15%;
    --rotation: 45deg;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 5%;
    --rotation: -30deg;
    border-color: var(--border-color);
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 5%;
    --rotation: 15deg;
    border-color: var(--accent-purple-light);
}


/* Coffee Cup */
.coffee-cup {
    position: absolute;
    bottom: 15%;
    left: 10%;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.cup-body {
    width: 60px;
    height: 50px;
    background: var(--accent-purple);
    border: 3px solid var(--accent-purple-dark);
    border-radius: 0 0 8px 8px;
    position: relative;
}

.cup-body::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -3px;
    width: 60px;
    height: 15px;
    border: 3px solid var(--accent-purple-dark);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--accent-purple);
}

.cup-handle {
    position: absolute;
    right: -15px;
    top: 10px;
    width: 20px;
    height: 30px;
    border: 3px solid var(--accent-purple-dark);
    border-left: none;
    border-radius: 0 15px 15px 0;
}

.coffee-steam {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.coffee-steam span {
    width: 3px;
    height: 20px;
    background: var(--text-secondary);
    border-radius: 3px;
    opacity: 0.6;
    animation: steam 2s ease-in-out infinite;
}

.coffee-steam span:nth-child(2) {
    animation-delay: 0.3s;
}

.coffee-steam span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes steam {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scaleY(1.2);
        opacity: 0.3;
    }
}

/* Laptop */
.laptop {
    position: absolute;
    top: 20%;
    right: 10%;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    z-index: 3;
}

.laptop-screen {
    width: 280px;
    height: 180px;
    background: var(--bg-tertiary);
    border: 4px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-window {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.code-header {
    height: 30px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.code-dot:nth-child(1) {
    background: #ff5f56;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #27c93f;
}

.code-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 4px;
}

.code-keyword {
    color: #c792ea;
}

.code-var {
    color: #82aaff;
}

.code-property {
    color: #7fdbca;
}

.code-string {
    color: #c3e88d;
}

.laptop-keyboard {
    width: 300px;
    height: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin: 0 auto;
    position: relative;
}

.laptop-keyboard::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
}

.laptop-base {
    width: 320px;
    height: 8px;
    background: var(--accent-purple);
    border: 2px solid var(--accent-purple-dark);
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
    top: -2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 100px 40px 40px;
    }

    .left-section {
        padding-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .right-section {
        padding-left: 0;
        min-height: 350px;
        width: 100%;
    }

    .illustration-container {
        max-width: 100%;
        height: 400px;
    }

    .name {
        font-size: 56px;
    }

    .tagline {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .laptop {
        transform: perspective(1000px) rotateY(-12deg) rotateX(4deg) scale(0.85);
    }

    .laptop-screen {
        width: 240px;
        height: 150px;
    }

    .laptop-keyboard {
        width: 260px;
    }

    .laptop-base {
        width: 280px;
    }

    .coffee-cup {
        bottom: 10%;
    }

    .coffee-cup .cup-body {
        width: 55px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .navbar-wrapper {
        top: 15px;
        width: calc(100% - 30px);
    }

    .navbar-logo {
        width: 90px;
        height: 90px;
        left: -45px;
    }

    .main-container {
        padding: 90px 30px 30px;
    }

    .left-section {
        margin-bottom: 30px;
    }

    .right-section {
        min-height: 300px;
    }

    .illustration-container {
        height: 350px;
    }

    .name {
        font-size: 42px;
        line-height: 1.2;
    }

    .tagline {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .accent-line {
        width: 60px;
        margin: 12px 0 25px;
    }

    .social-icons {
        gap: 12px;
        margin-bottom: 25px;
    }

    .social-button {
        width: 52px;
        height: 52px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .btn-resume {
        padding: 13px 24px;
        font-size: 15px;
    }

    .laptop {
        transform: perspective(1000px) rotateY(-10deg) rotateX(3deg) scale(0.75);
    }

    .laptop-screen {
        width: 200px;
        height: 130px;
    }

    .laptop-keyboard {
        width: 220px;
    }

    .laptop-base {
        width: 240px;
    }

    .code-content {
        padding: 12px;
        font-size: 10px;
    }

    .coffee-cup .cup-body {
        width: 50px;
        height: 40px;
    }

    .shape-1 {
        width: 70px;
        height: 70px;
    }

    .shape-2 {
        width: 50px;
        height: 50px;
    }

    .shape-3 {
        width: 85px;
        height: 85px;
    }

    .nav-container {
        padding: 10px 14px;
        gap: 10px;
    }

    .nav-item {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .navbar-wrapper {
        top: 10px;
        width: calc(100% - 20px);
    }

    .navbar-logo {
        width: 70px;
        height: 70px;
        left: -35px;
    }

    .main-container {
        padding: 80px 20px 20px;
    }

    .left-section {
        margin-bottom: 25px;
    }

    .right-section {
        min-height: 280px;
    }

    .illustration-container {
        height: 300px;
    }

    .name {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .tagline {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.4;
        min-height: 24px;
    }

    .accent-line {
        width: 50px;
        height: 3px;
        margin: 10px 0 20px;
    }

    .social-icons {
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

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

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .btn-resume {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .modal-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .laptop {
        transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) scale(0.65);
    }

    .laptop-screen {
        width: 170px;
        height: 110px;
        border-width: 3px;
    }

    .laptop-keyboard {
        width: 190px;
        height: 12px;
    }

    .laptop-base {
        width: 210px;
        height: 6px;
    }

    .code-header {
        height: 25px;
        padding: 0 10px;
    }

    .code-dot {
        width: 8px;
        height: 8px;
    }

    .code-content {
        padding: 10px;
        font-size: 9px;
        line-height: 1.4;
    }

    .coffee-cup {
        bottom: 8%;
        left: 5%;
    }

    .coffee-cup .cup-body {
        width: 45px;
        height: 35px;
    }

    .coffee-cup .cup-body::before {
        width: 45px;
        height: 12px;
    }

    .cup-handle {
        right: -12px;
        top: 8px;
        width: 16px;
        height: 25px;
    }

    .coffee-steam {
        top: -25px;
    }

    .coffee-steam span {
        width: 2px;
        height: 16px;
    }

    .shape-1 {
        width: 60px;
        height: 60px;
        top: 8%;
        right: 10%;
    }

    .shape-2 {
        width: 45px;
        height: 45px;
        bottom: 15%;
        right: 3%;
    }

    .shape-3 {
        width: 70px;
        height: 70px;
        top: 45%;
        left: 3%;
    }

    .nav-container {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 40px;
    }

    .nav-item {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 15px;
        padding: 7px 10px;
    }
}

@media (max-width: 360px) {
    .navbar-logo {
        width: 60px;
        height: 60px;
        left: -30px;
    }

    .name {
        font-size: 28px;
    }

    .tagline {
        font-size: 15px;
    }

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

    .social-icon {
        width: 26px;
        height: 26px;
    }

    .laptop {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) scale(0.6);
    }

    .laptop-screen {
        width: 150px;
        height: 95px;
    }

    .laptop-keyboard {
        width: 170px;
    }

    .laptop-base {
        width: 190px;
    }
}

/* Footer Links */
.footer-links {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    font-size: 14px;
    color: var(--text-secondary);
    direction: ltr;
    text-align: left;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-purple-light);
}

.footer-links span {
    color: var(--text-secondary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-links {
        font-size: 12px;
        bottom: 15px;
    }
}

