/* ===== CSS Variables ===== */
:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-text-secondary: #71717A;
    --color-border: #000000;
    --color-white: #FFFFFF;
    --font-sora: 'Sora', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sora);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-text);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.25s ease, width 0.3s ease, height 0.3s ease;
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 7rem;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-border);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        padding: 2rem;
        border-bottom: 2px solid var(--color-border);
        transition: right 0.3s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

/* ===== Section Titles ===== */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.title-bold {
    font-weight: 800;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 4rem;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    margin-top: 5rem;
    padding: 2.5rem 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-text {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hero-greeting {
    white-space: nowrap;
}

.typing-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.hero-role {
    white-space: nowrap;
}

.role-bold {
    font-weight: 800;
}

.role-outline {
    -webkit-text-stroke: 1px var(--color-text);
    color: var(--color-white);
    font-weight: 800;
}

.hero-location {
    white-space: nowrap;
}

.location-bold {
    font-weight: 800;
}

.hero-description {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.social-icon {
    background-color: var(--color-white);
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 0.375rem;
    transition: var(--transition);
    cursor: pointer;
}

.social-icon:hover {
    background-color: var(--color-text);
    color: var(--color-white);
    transform: scale(1.1);
}

.hero-image {
    flex: 1;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        padding: 0 7rem;
    }

    .hero-content {
        width: 45%;
    }

    .hero-text {
        font-size: 2.2rem;
        gap: 1.25rem;
        margin-top: 0;
    }

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

    .social-links {
        margin-top: 3.5rem;
    }

    .social-icon {
        padding: 1rem;
    }

    .hero-image {
        width: 45%;
        margin-left: 15rem;
    }
}

/* ===== Skills Section ===== */
.skills-section {
    margin: 2rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.75rem;
    place-items: center;
}

.skill-card {
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 0.375rem;
    padding: 0.75rem;
    height: 9rem;
    width: 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    cursor: pointer;
}

.skill-card:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.skill-icon {
    font-size: 3rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-section {
        margin: 4rem 0;
    }

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

    .skill-card {
        height: 11rem;
        width: 11rem;
    }
}

/* ===== About Section ===== */
.about-section {
    padding: 2rem 0;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 1.25rem;
}

.about-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
        align-items: center;
    }

    .about-image,
    .about-content {
        flex: 1;
    }

    .about-content h2 {
        margin-bottom: 2.5rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

/* ===== Projects Section ===== */
.projects-section {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 2rem 0;
    margin: 2rem 0;
}

.projects-section .section-title {
    color: var(--color-white);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    padding-bottom: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

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

.project-number {
    font-weight: 800;
    font-size: 1.875rem;
}

.project-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.project-description {
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.project-link {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
}

@media (min-width: 1024px) {
    .projects-section {
        padding: 4rem 0;
        margin: 4rem 0;
    }

    .projects-list {
        gap: 4rem;
        margin-top: 4rem;
        padding-bottom: 1.5rem;
    }

    .project-card {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .project-reverse {
        flex-direction: row-reverse;
    }

    .project-image {
        width: 500px;
        flex-shrink: 0;
    }

    .project-info {
        flex: 1;
        gap: 1.5rem;
    }

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

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

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

/* ===== Contact Section ===== */
.contact-section {
    padding: 2rem 0;
    margin: 2rem 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.form-input,
.form-textarea {
    border: 2px solid var(--color-border);
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sora);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-secondary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-textarea {
    resize: none;
    height: 8rem;
}

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

.btn-submit {
    background-color: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sora);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.social-icon-small {
    background-color: var(--color-white);
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 0.375rem;
    transition: var(--transition);
    cursor: pointer;
}

.social-icon-small:hover {
    background-color: var(--color-text);
    color: var(--color-white);
    transform: scale(1.1);
}

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

.contact-heading {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.heading-outline {
    -webkit-text-stroke: 1px var(--color-text);
    color: var(--color-white);
}

.contact-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.contact-item i {
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 0.25rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:hover i {
    border-color: var(--color-text);
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 4rem 0;
        margin: 4rem 0;
    }

    .contact-grid {
        flex-direction: row;
        gap: 4rem;
        margin-top: 4rem;
    }

    .contact-form-wrapper {
        flex: 0 0 40%;
    }

    .form-footer {
        flex-direction: row;
        gap: 1.25rem;
        align-items: center;
    }

    .btn-submit {
        flex: 1;
    }

    .contact-info {
        flex: 1;
    }

    .contact-heading {
        font-size: 3rem;
        gap: 0.75rem;
    }

    .contact-text {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .contact-details {
        margin-top: 1.5rem;
        font-size: 1.25rem;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
}

/* ===== Mobile Optimization ===== */
@media (max-width: 480px) {
    .hero-section {
        margin-top: 4rem;
        padding: 1.5rem 0;
    }

    .hero-text {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .hero-greeting,
    .hero-role,
    .hero-location {
        white-space: normal;
        word-wrap: break-word;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .social-links {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

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

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

    .skill-card {
        height: 7rem;
        width: 7rem;
        padding: 0.5rem;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .nav-logo img {
        height: 30px;
    }

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

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

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

    .contact-heading {
        font-size: 1.25rem;
    }

    .contact-text {
        font-size: 0.8rem;
    }

    .contact-details {
        font-size: 0.8rem;
    }

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

/* Additional mobile fixes for very small devices */
@media (max-width: 360px) {
    .hero-text {
        font-size: 0.9rem;
    }

    .skill-card {
        height: 6rem;
        width: 6rem;
        font-size: 0.8rem;
    }

    .skill-icon {
        font-size: 1.75rem;
    }

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

    .nav-logo img {
        height: 25px;
    }
}