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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #00d9ff;
    --card-bg: #1a1a1a;
}

body.light-theme {
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --accent: #0066ff;
    --card-bg: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
    cursor: none;
}

/* Show default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    body * {
        cursor: auto !important;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
}

.loading-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Code rain effect */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.typing-text {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
}

.cursor {
    color: #00ff00;
    font-size: 3rem;
    animation: blink 0.7s infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .typing-text {
        font-size: 2rem;
    }

    .cursor {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .typing-text {
        font-size: 1.5rem;
    }

    .cursor {
        font-size: 1.5rem;
    }
}

/* Portfolio Page */
.portfolio-page {
    display: none;
    min-height: 100vh;
    position: relative;
}

.portfolio-page.active {
    display: block;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 204, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 136, 170, 0.1) 0%, transparent 40%),
        radial-gradient(circle, rgba(0, 217, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, #0a0a0a 0%, #0d1117 25%, #161b22 50%, #0d1117 75%, #0a0a0a 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, center;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 0 0, center;
    }

    25% {
        background-position: 100% 50%, 0% 50%, 80% 20%, 0 0, center;
    }

    50% {
        background-position: 50% 100%, 50% 0%, 20% 80%, 0 0, center;
    }

    75% {
        background-position: 0% 50%, 100% 50%, 60% 40%, 0 0, center;
    }
}

body.light-theme .animated-bg {
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle, rgba(0, 102, 255, 0.25) 1px, transparent 1px),
        linear-gradient(180deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%, #f8f9fa 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, center;
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Navigation Bar - Floating Dock Style */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    gap: 0.5rem;
    max-width: 90vw;
    width: auto;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    cursor: none;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.3rem;
    font-size: 0.85rem;
}

body.light-theme .theme-toggle {
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
}

.hero-left {
    flex: 1;
}

.name {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #00a8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.first-name {
    display: block;
}

.last-name {
    display: block;
    padding-left: 3rem;
}

body.light-theme .name {
    background: linear-gradient(135deg, var(--accent), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-container {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.role-prefix {
    color: var(--text-secondary);
}

.role-text {
    color: var(--accent);
    margin-left: 0.5rem;
}

.role-cursor {
    display: none;
}

.cta-social-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
}

body.light-theme .cta-button {
    color: #fff;
}

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

.social-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--text-primary);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: none;
}

.social-icon i {
    font-size: 1.3rem;
}

.social-icon span {
    font-weight: 500;
    font-size: 0.95rem;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-5px);
}

body.light-theme .social-icon:hover {
    color: #fff;
}

/* Hero Right - Image */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 320px;
    height: 320px;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    cursor: none;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: var(--accent);
    padding: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover .image-wrapper {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

body.light-theme .image-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: var(--accent);
}

body.light-theme .image-container:hover .image-wrapper {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-primary);
    border-radius: 26px;
    z-index: 1;
}

.profile-image {
    position: relative;
    z-index: 2;
}

/* Placeholder Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: perspective(1000px) rotateX(-15deg) translateY(100px) translateZ(-100px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.section.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) translateZ(0);
}

.section h2 {
    font-size: 3rem;
    color: var(--text-primary);
}

/* Hero section 3D scroll animation */
.hero {
    opacity: 0;
    transform: perspective(1200px) rotateY(-10deg) translateX(-50px) scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.hero.visible {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0) scale(1);
}

/* About Section 3D Animation */
.about-section {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(80px) scale(0.9);
    transition: opacity 1s ease 0.2s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.about-section.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

/* Skills Section */
.skills-section {
    display: block;
    padding: 4rem 2rem;
    min-height: auto;
    opacity: 0;
    transform: perspective(1000px) rotateY(10deg) translateX(50px) scale(0.95);
    transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.skills-section.visible {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateX(0) scale(1);
}

/* Contact Section 3D Animation */
.contact-section {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(100px) translateZ(-50px);
    transition: opacity 1s ease 0.4s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.contact-section.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) translateZ(0);
}

.skills-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.skill-category-title {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 600;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: none;
}

.skill-card:hover {
    transform: translateX(5px);
}

body.light-theme .skill-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .skill-card:hover {
    transform: translateX(5px);
}

.skill-card img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.skill-card p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Hero section scroll animation */
.hero {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Me Section */
.about-section {
    min-height: auto;
    padding: 6rem 2rem;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    width: 100%;
}

.about-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Responsive for About Section */
@media (max-width: 767px) {
    .about-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .name {
        font-size: 2.5rem;
    }

    .role-container {
        font-size: 1.5rem;
        justify-content: center;
    }

    .image-container {
        width: 240px;
        height: 240px;
    }

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

@media (max-width: 767px) {
    .navbar {
        padding: 0.7rem 1.5rem;
        top: 1.5rem;
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        margin-left: 0.3rem;
    }

    .name {
        font-size: 2rem;
    }

    .role-container {
        font-size: 1.2rem;
    }

    .image-container {
        width: 220px;
        height: 220px;
    }

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

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

    .skill-card {
        padding: 0.7rem 1rem;
    }

    .skill-card img {
        width: 35px;
        height: 35px;
    }

    .skill-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0.8rem;
        top: 0.8rem;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        margin-left: 0.2rem;
        font-size: 0.75rem;
    }

    .name {
        font-size: 1.8rem;
    }

    .role-container {
        font-size: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .role-prefix {
        margin-bottom: 0.5rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .social-icon {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .social-icon i {
        font-size: 1.1rem;
    }

    .social-icon span {
        font-size: 0.8rem;
    }
}

/* Contact Section */
.contact-section {
    min-height: auto;
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 8rem;
    align-items: flex-start;
}

.contact-left {
    flex: 0 0 280px;
    padding-left: 0;
}

.contact-right {
    flex: 1;
    max-width: 700px;
}

.contact-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #00a8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

body.light-theme .contact-title {
    background: linear-gradient(135deg, var(--accent), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Social Icons Container */
.social-icons-container {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-icon-link {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: none;
    overflow: hidden;
}

body.light-theme .social-icon-link {
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.social-icon-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 10px;
    z-index: 0;
}

.social-icon-link:hover::before {
    transform: translateY(0);
}

.social-svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.icon-path {
    fill: var(--text-primary);
    transition: fill 0.4s ease;
}

.social-icon-link:hover .icon-path {
    fill: #ffffff;
}

body.light-theme .social-icon-link:hover .icon-path {
    fill: #ffffff;
}

.social-icon-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--accent);
}

/* Tooltip */
.social-icon-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--accent);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.social-icon-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.contact-links {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
}


/* Contact Form */
.contact-right {
    flex: 2;
}

.contact-form {
    background: transparent;
    border: none;
    padding: 0;
}

body.light-theme .contact-form {
    background: transparent;
    border: none;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    text-align: left;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

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

.submit-button {
    --primary: var(--accent);
    --neutral-1: #f7f8f7;
    --neutral-2: #e7e7e7;
    --radius: 12px;
    width: auto;
    cursor: none;
    border-radius: var(--radius);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 4px 5px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 180px;
    padding: 16px 24px;
    height: 56px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

body.light-theme .submit-button {
    --neutral-1: #ffffff;
    --neutral-2: #f0f0f0;
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 10px 3px -3px rgba(0, 0, 0, 0.04);
}

.submit-button:active {
    transform: scale(1);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 10px 3px -3px rgba(0, 0, 0, 0.2);
}

.submit-button:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2.5px solid transparent;
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
    z-index: 0;
    transition: all 0.4s ease;
}

.submit-button:hover::after {
    transform: scale(1.05, 1.1);
    box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}

.submit-button::before {
    content: "";
    inset: 7px 6px 6px 6px;
    position: absolute;
    background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
    border-radius: 30px;
    filter: blur(0.5px);
    z-index: 2;
}

.state p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.state .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: scale(1.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state .icon svg {
    overflow: visible;
}

/* Outline */
.outline {
    position: absolute;
    border-radius: inherit;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    inset: -2px -3.5px;
}

.outline::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 180deg,
            transparent 60%,
            var(--primary) 80%,
            transparent 100%);
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.submit-button:hover .outline {
    opacity: 1;
}

.submit-button:hover .outline::before {
    animation-play-state: running;
}

/* Letters */
.state p span {
    display: block;
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}

.submit-button:hover p span {
    opacity: 1;
    animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}

.submit-button:focus p span {
    opacity: 1;
    animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}

@keyframes wave {
    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
        color: var(--primary);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) translateX(5px) rotate(-90deg);
        color: var(--primary);
        filter: blur(5px);
    }

    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
        filter: blur(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes disapear {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(5px) translateY(20px);
        color: var(--primary);
        filter: blur(5px);
    }
}

/* Plane */
.state--default .icon svg {
    animation: land 0.6s ease forwards;
}

.submit-button:hover .state--default .icon {
    transform: rotate(45deg) scale(1.25);
}

.submit-button:focus .state--default svg {
    animation: takeOff 0.8s linear forwards;
}

.submit-button:focus .state--default .icon {
    transform: rotate(0) scale(1.25);
}

@keyframes takeOff {
    0% {
        opacity: 1;
    }

    60% {
        opacity: 1;
        transform: translateX(70px) rotate(45deg) scale(2);
    }

    100% {
        opacity: 0;
        transform: translateX(160px) rotate(45deg) scale(0);
    }
}

@keyframes land {
    0% {
        transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
        opacity: 0;
        filter: blur(3px);
    }

    100% {
        transform: translateX(0) translateY(0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Contrail */
.state--default .icon:before {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    width: 0;
    left: -5px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}

.submit-button:focus .state--default .icon:before {
    animation: contrail 0.8s linear forwards;
}

@keyframes contrail {
    0% {
        width: 0;
        opacity: 1;
    }

    8% {
        width: 15px;
    }

    60% {
        opacity: 0.7;
        width: 80px;
    }

    100% {
        opacity: 0;
        width: 160px;
    }
}

/* States */
.state {
    padding-left: 29px;
    z-index: 2;
    display: flex;
    position: relative;
}

.state--default span:nth-child(4) {
    margin-right: 5px;
}

.state--sent {
    display: none;
}

.state--sent svg {
    transform: scale(1.25);
    margin-right: 8px;
}

.submit-button:focus .state--default {
    position: absolute;
}

.submit-button:focus .state--sent {
    display: flex;
}

.submit-button:focus .state--sent span {
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}

.submit-button:focus .state--sent .icon svg {
    opacity: 0;
    animation: appear 1.2s ease forwards 0.8s;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(4) rotate(-40deg);
        color: var(--primary);
        filter: blur(4px);
    }

    30% {
        opacity: 1;
        transform: scale(0.6);
        filter: blur(1px);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

body.light-theme .footer {
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

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

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

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Contact Section */
@media (max-width: 968px) {
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-left {
        flex: 1;
    }

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

@media (max-width: 767px) {
    .contact-title {
        font-size: 1.8rem;
    }

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

    .contact-form {
        padding: 0;
    }

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

/* Projects Section */
.projects-section {
    min-height: auto;
    padding: 6rem 2rem;
}

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

.projects-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Project Card */
.card {
    width: 350px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background-color: var(--card-bg);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-theme .card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card::before {
    content: "";
    width: 350px;
    height: 100px;
    position: absolute;
    top: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: 3px solid var(--card-bg);
    background: linear-gradient(135deg, var(--accent) 0%, #00a8cc 50%, #0088aa 100%);
    transition: all 0.3s ease;
}

body.light-theme .card::before {
    background: linear-gradient(135deg, #0066ff 0%, #0099ff 50%, #00ccff 100%);
    border-bottom: 3px solid #ffffff;
}

.card * {
    z-index: 1;
}

.card .image {
    width: 90px;
    height: 90px;
    background-color: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    margin-top: 30px;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

body.light-theme .card .image {
    border: 4px solid #ffffff;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.5s ease;
    padding: 0 1.5rem;
    width: 100%;
}

.card-info span {
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    margin-top: 15px;
    line-height: 1.2;
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    padding: 0 1.5rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 100px;
}

.card-2 .card-info span {
    top: 20px;
}

.card .button {
    text-decoration: none;
    background-color: var(--accent);
    color: #fff;
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.5s ease;
    font-weight: 500;
    cursor: none;
}

.card:hover::before {
    width: 350px;
    height: 300px;
    border-bottom: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transform: scale(0.95);
}

.card:hover .card-info {
    transform: translate(0%, -25%);
}

.card:hover .image {
    transform: scale(2) translate(-60%, -40%);
}

.card .button:hover {
    background-color: #00a8cc;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

body.light-theme .card .button:hover {
    background-color: #0099ff;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

/* Responsive Projects */
@media (max-width: 1200px) {
    .projects-grid {
        gap: 1.5rem;
    }

    .card {
        width: 320px;
        height: 280px;
    }

    .card::before {
        width: 320px;
    }

    .card:hover::before {
        width: 320px;
    }
}

@media (max-width: 968px) {
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 350px;
        height: 300px;
    }

    .card::before {
        width: 350px;
    }

    .card:hover::before {
        width: 350px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
        max-width: 350px;
    }

    .card::before {
        width: 100%;
    }

    .card:hover::before {
        width: 100%;
    }
}


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

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }

    .name {
        font-size: 3rem;
    }

    .role-container {
        font-size: 1.6rem;
    }

    .image-container {
        width: 350px;
        height: 350px;
    }

    .contact-container {
        gap: 8rem;
    }

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

/* Tablets (768px and below) */
/* Tablets (767px and below) */
@media (max-width: 767px) {

    /* Disable custom cursor on smaller screens */
    body {
        cursor: auto !important;
    }

    body * {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }

    .hero {
        padding: 5rem 1.5rem 2rem;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .name {
        font-size: 2.5rem;
        align-items: center;
    }

    .first-name,
    .last-name {
        padding-left: 0 !important;
        text-align: center;
    }

    .role-container {
        font-size: 1.4rem;
        justify-content: center;
    }

    .cta-social-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-icon {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .social-icon i {
        font-size: 1.1rem;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

    /* About Section */
    .about-section {
        padding: 4rem 1.5rem;
    }

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

    .about-text {
        font-size: 1rem;
        text-align: left;
    }

    /* Skills Section */
    .skills-section {
        padding: 4rem 1.5rem;
    }

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

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

    .skill-category-title {
        font-size: 1.2rem;
    }

    .skill-card {
        padding: 0.7rem 1rem;
    }

    .skill-card img {
        width: 32px;
        height: 32px;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    /* Projects Section */
    .projects-section {
        padding: 4rem 1.5rem;
    }

    /* Contact Section */
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        gap: 3rem;
    }

    .contact-left {
        flex: 1;
        width: 100%;
    }

    .contact-title {
        font-size: 1.8rem;
        white-space: normal;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .social-icons-container {
        gap: 1rem;
        justify-content: flex-start;
    }

    .social-icon-link {
        width: 45px;
        height: 45px;
    }

    .social-svg {
        width: 22px;
        height: 22px;
    }

    .contact-right {
        flex: 1;
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1.2rem;
    }

    .submit-button {
        min-width: 160px;
        height: 52px;
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 0.6rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

/* Mobile Landscape and Small Tablets (640px and below) */
@media (max-width: 640px) {
    .navbar {
        padding: 0.5rem 1rem;
        top: 1rem;
        gap: 0.3rem;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .hero {
        padding: 4.5rem 1rem 2rem;
    }

    .name {
        font-size: 2rem;
    }

    .role-container {
        font-size: 1.2rem;
        min-height: 50px;
    }

    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .social-icon {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .social-icon i {
        font-size: 1rem;
    }

    .social-icon span {
        font-size: 0.85rem;
    }

    .image-container {
        width: 240px;
        height: 240px;
    }

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

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

    .about-text {
        font-size: 0.95rem;
    }

    .skills-section {
        padding: 3rem 1rem;
    }

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

    .skill-category-title {
        font-size: 1.1rem;
    }

    .skill-card {
        padding: 0.6rem 0.9rem;
    }

    .skill-card img {
        width: 30px;
        height: 30px;
    }

    .skill-card p {
        font-size: 0.82rem;
    }

    .projects-section {
        padding: 3rem 1rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

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

    .social-icons-container {
        gap: 0.8rem;
    }

    .social-icon-link {
        width: 42px;
        height: 42px;
    }

    .social-svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0.8rem;
        top: 0.8rem;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .hero {
        padding: 4rem 1rem 1.5rem;
        min-height: auto;
    }

    .name {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .role-container {
        font-size: 1rem;
        min-height: 40px;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-icon {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .social-icon i {
        font-size: 0.95rem;
    }

    .social-icon span {
        font-size: 0.8rem;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }

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

    .about-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .about-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .skills-section {
        padding: 2.5rem 1rem;
    }

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

    .skills-grid {
        gap: 1.5rem;
    }

    .skill-category-title {
        font-size: 1rem;
        padding-bottom: 0.6rem;
    }

    .skill-list {
        gap: 0.8rem;
    }

    .skill-card {
        padding: 0.6rem 0.8rem;
    }

    .skill-card img {
        width: 28px;
        height: 28px;
    }

    .skill-card p {
        font-size: 0.8rem;
    }

    .projects-section {
        padding: 2.5rem 1rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }

    .card {
        width: 100%;
        max-width: 320px;
        height: 280px;
    }

    .card::before {
        width: 100%;
        height: 90px;
    }

    .card:hover::before {
        width: 100%;
        height: 280px;
    }

    .card .image {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .card-info span {
        font-size: 20px;
        margin-top: 10px;
    }

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

    .card .button {
        padding: 7px 20px;
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 2.5rem 1rem;
    }

    .contact-container {
        gap: 2rem;
    }

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

    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .social-icons-container {
        gap: 0.7rem;
        flex-wrap: wrap;
    }

    .social-icon-link {
        width: 40px;
        height: 40px;
    }

    .social-svg {
        width: 18px;
        height: 18px;
    }

    .social-icon-link::after {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

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

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

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

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

    .submit-button {
        min-width: 150px;
        height: 48px;
        font-size: 14px;
        padding: 14px 20px;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .navbar {
        padding: 0.3rem 0.6rem;
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .theme-toggle {
        width: 26px;
        height: 26px;
    }

    .name {
        font-size: 1.6rem;
    }

    .role-container {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        width: auto;
        max-width: 240px;
    }

    .cta-social-container {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        align-items: center;
    }

    .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
        max-width: 240px;
    }

    .social-icon {
        padding: 0.5rem 0.4rem;
        font-size: 0.65rem;
    }

    .image-container {
        width: 180px;
        height: 180px;
    }

    .about-title,
    .section-title {
        font-size: 1.4rem;
    }

    .about-text {
        font-size: 0.85rem;
    }

    .skill-category-title {
        font-size: 0.95rem;
    }

    .skill-card {
        padding: 0.5rem 0.7rem;
    }

    .skill-card img {
        width: 26px;
        height: 26px;
    }

    .skill-card p {
        font-size: 0.75rem;
    }

    .card {
        max-width: 280px;
        height: 260px;
    }

    .card::before {
        height: 80px;
    }

    .card:hover::before {
        height: 260px;
    }

    .card .image {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }

    .card-info span {
        font-size: 18px;
    }

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

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

    .social-icon-link {
        width: 38px;
        height: 38px;
    }

    .social-svg {
        width: 16px;
        height: 16px;
    }

    .submit-button {
        min-width: 140px;
        height: 44px;
        font-size: 13px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 2rem 2rem;
    }

    .section {
        min-height: auto;
        padding: 3rem 2rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        min-height: auto;
        padding: 3rem 2rem;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }
}

/* High Resolution Displays */
@media (min-width: 1920px) {

    .hero-content,
    .about-container,
    .skills-container,
    .projects-container,
    .contact-container {
        max-width: 1600px;
    }

    .name {
        font-size: 4rem;
    }

    .role-container {
        font-size: 2rem;
    }

    .image-container {
        width: 450px;
        height: 450px;
    }

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

    .about-title {
        font-size: 3rem;
    }

    .about-text {
        font-size: 1.2rem;
    }
}


/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   ======================================== */

/* Prevent horizontal scroll */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all sections are properly contained */
.section,
.hero,
.about-section,
.skills-section,
.projects-section,
.contact-section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Desktop First - Optimal viewing (1200px+) */
@media (min-width: 1200px) {
    .hero {
        padding: 8rem 3rem 3rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 6rem 3rem;
    }

    .hero-content,
    .about-container,
    .skills-container,
    .projects-container,
    .contact-container {
        margin: 0 auto;
    }
}

/* Medium Desktop (1400px - 1599px) - Better scaling */
@media (min-width: 1400px) and (max-width: 1599px) {

    .hero,
    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content,
    .about-container,
    .skills-container,
    .projects-container,
    .contact-container {
        max-width: 1300px;
    }

    /* Navbar size increase */
    nav {
        padding: 1.2rem 3rem;
    }

    .nav-links a {
        font-size: 1.15rem;
    }

    /* Add left padding to name and about section */
    .hero-left {
        padding-left: 2.5rem;
    }

    .name {
        font-size: 3.8rem;
    }

    .role-container {
        font-size: 1.9rem;
    }

    /* Triangle button layout: Get in Touch above LinkedIn/GitHub */
    .cta-social-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-right: 12rem;
        margin-top: 3rem;
    }

    .cta-button {
        align-self: center;
        font-size: 1.3rem;
        padding: 1rem 3rem;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.2rem;
        padding: 0.9rem 1.8rem;
    }

    .image-container {
        width: 420px;
        height: 420px;
    }

    .section-title,
    .about-title {
        font-size: 2.8rem;
    }

    .about-text {
        font-size: 1.15rem;
        line-height: 1.85;
    }

    .skill-category-title {
        font-size: 1.4rem;
    }

    .skill-card {
        padding: 0.9rem 1.1rem;
    }

    .skill-card img {
        width: 38px;
        height: 38px;
    }

    .skill-card p {
        font-size: 0.95rem;
    }

    .card {
        width: 380px;
        height: 320px;
    }

    .card::before {
        width: 380px;
        height: 110px;
    }

    .card:hover::before {
        width: 380px;
        height: 320px;
    }

    .card .image {
        width: 95px;
        height: 95px;
    }

    .card-info span {
        font-size: 26px;
    }

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

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

    .contact-container {
        gap: 6rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 1.3rem 1.6rem;
        font-size: 1.25rem;
        min-width: 550px;
    }

    .form-group textarea {
        min-height: 200px;
    }
}

/* Large Tablets (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero {
        padding: 7rem 2.5rem 2.5rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 5rem 2.5rem;
        min-height: 100vh;
    }

    .hero-content {
        gap: 3.5rem;
    }

    .hero-left {
        padding-left: 3rem;
    }

    .name {
        font-size: 3.2rem;
        margin-top: 4rem;
    }

    .image-container {
        width: 380px;
        height: 380px;
    }

    .cta-social-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        margin-top: 3rem;
        padding-right: 4rem;
    }

    .cta-button {
        align-self: center;
    }

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

    .skills-section .section-title {
        margin-top: 3rem;
    }

    .projects-section .section-title {
        margin-top: 5rem;
        margin-bottom: 6rem;
    }

    .projects-grid {
        margin-top: 4rem;
    }

    .contact-container {
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-left {
        flex: 0 0 auto;
        padding-left: 0;
        padding-right: 8rem;
    }

    .contact-right {
        flex: 1;
        max-width: none;
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        min-width: 400px;
    }

    .submit-button {
        display: block;
        margin: 0 auto;
    }

    .social-icons-container {
        display: flex;
        justify-content: center;
        padding-left: 2rem;
    }
}

/* Medium Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {

    html {
        scroll-padding-top: 45px;
    }

    body {
        scroll-behavior: smooth;
    }

    .hero {
        padding: 12rem 2rem 8rem;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-content {
        flex-direction: row;
        gap: 3.5rem;
        text-align: left;
        align-items: center;
        justify-content: center;
        margin-top: 4rem;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 1;
        gap: 1rem;
        padding-left: 2rem;
    }

    .hero-right {
        flex: 0 0 auto;
        margin-right: 2rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        min-height: 100vh;
        padding-top: 8rem;
        padding-bottom: 5rem;
        padding-left: 2rem;
        padding-right: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .skills-section {
        padding-top: 6rem;
    }

    .about-title {
        margin-top: 0 !important;
    }

    .section-title,
    .about-title {
        margin-top: 0 !important;
        padding-top: 0;
        margin-bottom: 2rem;
        font-size: 2rem;
    }

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

    .name {
        font-size: 2.4rem;
        align-items: flex-start;
        margin-bottom: 0.5rem;
        margin-top: 2rem;
    }

    .first-name {
        padding-left: 0 !important;
    }

    .last-name {
        padding-left: 2rem !important;
    }

    .role-container {
        font-size: 1.3rem;
        justify-content: flex-start;
        margin-bottom: 1.5rem;
    }

    .cta-social-container {
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
        align-self: center;
    }

    .social-links {
        display: flex;
        gap: 0.8rem;
        justify-content: center;
    }

    .role-container {
        font-size: 1.3rem;
        justify-content: flex-start;
        margin-bottom: 1rem;
        padding-left: 3rem;
    }

    .cta-social-container {
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }

    .social-links {
        display: flex;
        gap: 0.8rem;
    }

    .social-icon {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

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

    .skill-card {
        padding: 0.6rem 0.8rem;
    }

    .skill-card img {
        width: 32px;
        height: 32px;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    .skill-category-title {
        font-size: 1.1rem;
    }

    .projects-section .section-title {
        margin-bottom: 5rem;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
        margin-top: 3rem;
    }

    .projects-grid .card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .card {
        width: 320px;
        height: 280px;
    }

    .card::before {
        width: 320px;
        height: 90px;
    }

    .card:hover::before {
        width: 320px;
        height: 280px;
    }

    .card .image {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-top: 30px;
    }

    .card-info span {
        font-size: 20px;
    }

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

    .contact-container {
        gap: 6rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        min-width: 500px;
    }

    .navbar {
        padding: 0.48rem 1.1rem;
    }

    .nav-links a {
        font-size: 0.82rem;
        padding: 0.48rem 0.95rem;
    }
}

/* Small Tablets & Large Phones (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .hero {
        padding: 5rem 1.5rem 2rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 2.5rem;
        text-align: center;
    }

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

    .name {
        font-size: 2.3rem;
        align-items: center;
    }

    .first-name,
    .last-name {
        padding-left: 0 !important;
    }

    .role-container {
        font-size: 1.3rem;
        justify-content: center;
    }

    .cta-social-container {
        justify-content: center;
    }

    .image-container {
        width: 280px;
        height: 280px;
    }

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

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

    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }

    .navbar {
        padding: 0.45rem 0.95rem;
        top: 1.25rem;
    }

    .nav-links a {
        font-size: 0.78rem;
        padding: 0.45rem 0.85rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
    }
}

/* Mobile Devices (375px - 575px) */
@media (max-width: 575px) and (min-width: 375px) {
    html {
        scroll-padding-top: 20px;
    }

    .hero {
        padding: 5.5rem 1.25rem 2rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding-top: 5rem;
        padding-bottom: 3.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section-title,
    .about-title {
        font-size: 1.8rem;
        margin-top: -1.5rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 1rem;
        text-align: center;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }

    .name {
        font-size: 1.7rem;
        align-items: center;
        margin-bottom: 0.3rem;
    }

    .first-name,
    .last-name {
        padding-left: 0 !important;
    }

    .role-container {
        font-size: 0.85rem;
        justify-content: center;
        margin-bottom: 0.7rem;
        display: inline-flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        max-width: 100%;
    }

    .role-text {
        white-space: nowrap;
        display: inline;
    }

    .role-cursor {
        display: none;
    }

    .cta-social-container {
        gap: 0.8rem;
    }

    .cta-button {
        padding: 0.65rem 1.2rem;
        font-size: 0.88rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-icon {
        padding: 0.48rem 0.75rem;
        font-size: 0.78rem;
    }

    .social-icon i {
        font-size: 0.95rem;
    }

    .image-container {
        width: 180px;
        height: 180px;
        margin-bottom: 0.7rem;
    }

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

    .skill-card {
        padding: 0.7rem 0.9rem;
    }

    .skill-card img {
        width: 30px;
        height: 30px;
    }

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

    .about-text {
        font-size: 0.95rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 2.5rem;
    }

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

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

    .form-group input,
    .form-group textarea {
        padding: 0.85rem 1.1rem;
    }

    .submit-button {
        min-width: 155px;
        height: 50px;
    }

    .navbar {
        padding: 0.3rem 0.7rem;
        top: 1rem;
        gap: 0.2rem;
        align-items: center;
    }

    .nav-links {
        gap: 0.1rem;
        align-items: center;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    html {
        scroll-padding-top: 15px;
    }

    .hero {
        padding: 5.5rem 1rem 1.5rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        padding-top: 4.5rem;
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-title,
    .about-title {
        font-size: 1.5rem;
        margin-top: -1.2rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 1.25rem;
        text-align: center;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .name {
        font-size: 1.75rem;
        align-items: center;
        margin-bottom: 0.4rem;
    }

    .first-name,
    .last-name {
        padding-left: 0 !important;
    }

    .role-container {
        font-size: 0.95rem;
        justify-content: center;
        margin-bottom: 0.8rem;
    }

    .cta-social-container {
        gap: 0.7rem;
    }

    .cta-button {
        padding: 0.5rem 1.1rem;
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-icon {
        padding: 0.45rem 0.7rem;
        font-size: 0.65rem;
    }

    .social-icon i {
        font-size: 0.7rem;
    }

    .image-container {
        width: 170px;
        height: 170px;
    }

    .skill-card {
        padding: 0.6rem 0.8rem;
    }

    .skill-card img {
        width: 26px;
        height: 26px;
    }

    .skill-card p {
        font-size: 0.8rem;
    }

    .about-text {
        font-size: 0.88rem;
    }

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

    .contact-title {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .social-icon-link {
        width: 40px;
        height: 40px;
    }

    .social-svg {
        width: 18px;
        height: 18px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem 0.95rem;
    }

    .submit-button {
        min-width: 145px;
        height: 46px;
    }

    .card {
        height: 270px;
    }

    .navbar {
        padding: 0.25rem 0.5rem;
        top: 0.85rem;
        gap: 0.15rem;
        align-items: center;
    }

    .nav-links {
        gap: 0.08rem;
        align-items: center;
    }

    .nav-links a {
        font-size: 0.68rem;
        padding: 0.35rem 0.55rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
    }

    .theme-toggle {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3.5rem 2rem 2rem;
    }

    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        min-height: auto;
        padding: 3rem 2rem;
    }

    .image-container {
        width: 220px;
        height: 220px;
    }
}

/* Ultra-wide Displays (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {

    .hero,
    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content,
    .about-container,
    .skills-container,
    .projects-container,
    .contact-container {
        max-width: 1600px;
    }

    .name {
        font-size: 4rem;
    }

    .role-container {
        font-size: 2.1rem;
    }

    .image-container {
        width: 450px;
        height: 450px;
    }

    .section-title,
    .about-title {
        font-size: 3rem;
    }

    .about-text {
        font-size: 1.25rem;
        line-height: 1.9;
    }

    .skill-category-title {
        font-size: 1.6rem;
    }

    .skill-card {
        padding: 1rem 1.3rem;
    }

    .skill-card img {
        width: 42px;
        height: 42px;
    }

    .skill-card p {
        font-size: 1.05rem;
    }

    .card {
        width: 420px;
        height: 350px;
    }

    .card::before {
        width: 420px;
        height: 120px;
    }

    .card:hover::before {
        width: 420px;
        height: 350px;
    }

    .card .image {
        width: 100px;
        height: 100px;
        font-size: 2.3rem;
    }

    .card-info span {
        font-size: 28px;
    }

    .card-info p {
        font-size: 1.05rem;
    }

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

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

/* Extra Ultra-wide Displays (2560px+) */
@media (min-width: 2560px) {

    html {
        scroll-padding-top: 70px;
    }

    .hero,
    .about-section,
    .skills-section,
    .projects-section,
    .contact-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about-section,
    .skills-section,
    .projects-section {
        padding-top: 3rem;
    }

    .contact-section {
        padding-top: 4rem;
    }

    .section-title,
    .about-title {
        font-size: 7.5rem;
        margin-bottom: 3.5rem;
        margin-top: -1rem;
    }

    .contact-title {
        margin-top: -1rem;
    }

    .hero-content,
    .about-container,
    .skills-container,
    .projects-container,
    .contact-container {
        max-width: 2400px;
    }

    .navbar {
        padding: 2.5rem 5.5rem;
        font-size: 1.5rem;
    }

    .nav-links a {
        font-size: 2.0rem;
        padding: 0.7rem 1.4rem;
    }

    .theme-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .hero-left {
        padding-left: 4rem;
    }

    .name {
        font-size: 7.5rem;
        margin-bottom: 3rem;
    }

    .role-container {
        padding-bottom: 4rem;
        padding-top: 4rem;
        font-size: 3.8rem;
        margin-bottom: 3rem;
    }

    .cta-social-container {
        padding-left: 4rem;
        margin-top: 3rem;
    }

    .cta-button {
        padding: 2.2rem 6rem;
        font-size: 2.3rem;
    }

    .social-icon {
        padding: 1.8rem 3rem;
        font-size: 2rem;
    }

    .social-icon i {
        font-size: 2.4rem;
    }

    .social-icon span {
        font-size: 2rem;
    }

    .image-container {
        width: 750px;
        height: 750px;
    }

    .about-text {
        font-size: 2rem;
        line-height: 2.3;
        margin-bottom: 3rem;
    }

    .skills-grid {
        gap: 4.5rem;
    }

    .skill-category-title {
        font-size: 3rem;
        padding-bottom: 1.8rem;
        margin-bottom: 1.8rem;
    }

    .skill-card {
        padding: 2rem 2.3rem;
    }

    .skill-card img {
        width: 80px;
        height: 80px;
    }

    .skill-card p {
        font-size: 1.6rem;
    }

    .projects-grid {
        gap: 4rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .projects-grid .card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .card {
        width: 650px;
        height: 540px;
    }

    .card::before {
        width: 650px;
        height: 170px;
    }

    .card:hover::before {
        width: 650px;
        height: 540px;
    }

    .card .image {
        width: 140px;
        height: 140px;
        font-size: 3.2rem;
        margin-top: 50px;
    }

    .card-info {
        padding: 0 2.5rem;
        gap: 25px;
    }

    .card-info span {
        font-size: 38px;
        margin-top: 25px;
    }

    .card-info p {
        font-size: 1.5rem;
        line-height: 1.7;
    }

    .card .button {
        padding: 14px 38px;
        font-size: 1.3rem;
    }

    .contact-container {
        gap: 15rem;
    }

    .contact-title {
        font-size: 6rem !important;
        font-weight: bold;
        margin-bottom: 3rem;
    }

    .contact-subtitle {
        font-size: 2.5rem;
        margin-bottom: 3.5rem;
    }

    .contact-left {
        padding-right: 18rem;
    }

    .social-icons-container {
        gap: 3rem;
    }

    .social-icon-link {
        width: 120px;
        height: 120px;
    }

    .social-svg {
        width: 60px;
        height: 60px;
    }

    .contact-right {
        width: 100%;
        max-width: none;
    }

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

    .form-group label {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 2.5rem 3.5rem;
        font-size: 2.2rem;
        width: 100%;
        min-width: 1000px;
    }

    .form-group textarea {
        min-height: 350px;
    }

    .submit-button {
        min-width: 380px;
        height: 110px;
        font-size: 28px;
        padding: 32px 60px;
        display: block;
        margin: 0 auto;
    }

    .footer {
        padding: 4rem;
    }

    .footer-links a {
        font-size: 1.4rem;
    }

    .footer-content p {
        font-size: 1.3rem;
    }
}

/* Accessibility - Touch Targets */
@media (max-width: 767px) {

    .nav-links a,
    .theme-toggle,
    .cta-button,
    .social-icon,
    .social-icon-link,
    .submit-button {
        min-height: 44px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .custom-cursor,
    .animated-bg,
    .theme-toggle {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero,
    .section {
        page-break-inside: avoid;
    }
}