/* =======================
   Global Styles
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    background-color: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
}

/* =======================
   Header / Navigation
======================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* =======================
   Home Section
======================= */
.home-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 6rem 8%;
    gap: 2rem;
    position: relative;
}

/* ===== Circular Profile Image ===== */
.home-image {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;          /* Ensures a perfect square */
    object-fit: cover;            /* Keeps image nicely cropped */
    border-radius: 50%;           /* Turns square into circle */
    justify-self: center;
    border: 4px solid #38bdf8;    /* Optional border styling */
}


/* Overlay */
.home-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 23, 42, 0.95),
        rgba(15, 23, 42, 0.6)
    );
    z-index: -1;
}

/* Content */
.home-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-content h1 {
    font-size: 3rem;
}

.typing-text {
    font-size: 1.6rem;
}

.typing-text span {
    color: #38bdf8;
}

.home-content p {
    max-width: 500px;
    color: #cbd5f5;
}

/* Buttons */
.home-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.6rem;
    background-color: #38bdf8;
    color: #0f172a;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s;
}

.btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

.btn.secondary:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* =======================
   Footer
======================= */
.footer {
    background-color: #020617;
    padding: 2rem 1rem;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 0.1rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
 }
 .social-links a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
 }
.footer-copy {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* =======================
   Media Queries
======================= */

/* Tablet */
@media (max-width: 900px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-image {
        max-width: 320px;
    }

    .home-cta {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 600px) {
    nav {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .home-content h1 {
        font-size: 2.2rem;
    }

    .typing-text {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.6rem 1.3rem;
    }

    .home-image {
        max-width: 240px;
        aspect-ratio: 3 / 4;
    }
}