@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Base Colors */
    --bg-dark: #0a0a0c;
    --bg-card: #141418;
    --nav-bg: rgba(10, 10, 12, 0.85);
    
    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    
    /* Accents - MATCHING The Pink/Magenta Shirt */
    --accent-1: #e91e63; /* Pink */
    --accent-2: #ff4081; /* Light Pink/Rose */
    
    --border-color: rgba(255, 255, 255, 0.08);
}

body.light-mode {
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --nav-bg: rgba(240, 242, 245, 0.85);
    --text-main: #111111;
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Use a specialized tech font for headings */
h1, h2, h3, h4, .logo, .greeting, .role-wrapper {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* Premium Background Ambient Glow matching the pink accent */
body::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-1) 0%, rgba(233, 30, 99, 0) 60%);
    opacity: 0.06;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    animation: fadeDown 1s ease forwards;
}

@keyframes fadeDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 6px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent-1);
    opacity: 0;
    transition: 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    margin-left: 20px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--accent-1);
    background: var(--border-color);
}

/* ----- Home Section ----- */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 40px;
    gap: 60px;
}

.home-content {
    flex: 1;
    max-width: 650px;
    animation: fadeRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

@keyframes fadeRight {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.greeting {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent-2);
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-content h1 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

/* Clean Scrolling Text Animation */
.role-wrapper {
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.static-prefix {
    margin-right: 12px;
}

.scrolling-words {
    height: 40px; /* matches line-height */
    overflow: hidden;
    position: relative;
}

.scrolling-words span {
    display: block;
    height: 100%;
    line-height: 40px;
    color: var(--accent-1);
    font-weight: 600;
    animation: scrollWords 12s infinite;
}

@keyframes scrollWords {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-40px); }
    50%, 70% { transform: translateY(-80px); }
    75%, 95% { transform: translateY(-120px); }
    100% { transform: translateY(-160px); }
}

.description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 540px;
    line-height: 1.7;
}

/* ----- Buttons & Socials ----- */
.actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 8px; /* Clean, modern rounded rectangle instead of pill */
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.25);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.35);
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Pure circles */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--text-main);
    border-color: var(--accent-1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ----- Premium Photo Circling ----- */
.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeLeft 1s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
    position: relative;
}

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

.image-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Outer solid spinning ring */
.spin-ring {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-1);
    border-right: 2px solid var(--accent-2);
    animation: spin 8s linear infinite;
    opacity: 0.8;
}

/* Inner dashed slow spinning ring */
.spin-ring-rev {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    animation: spin-reverse 15s linear infinite;
}

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

@keyframes spin-reverse {
    100% { transform: rotate(-360deg); }
}

/* The actual photo container */
.image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 5;
    background: var(--bg-card);
    /* A clean dark border gives distinction from the spinning rings */
    border: 4px solid var(--bg-dark); 
    box-shadow: 0 0 50px rgba(0,0,0,0.4);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-wrapper:hover .image-container img {
    transform: scale(1.05); /* Clean, subtle zoom */
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 991px) {
    .home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 140px;
    }

    .home-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .home-content h1 {
        font-size: 54px;
    }

    .role-wrapper {
        justify-content: center;
        font-size: 24px;
    }
    
    .actions {
        justify-content: center;
    }

    .image-wrapper {
        width: 320px;
        height: 320px;
        margin-top: 40px;
    }

    .spin-ring { width: 320px; height: 320px; }
    .spin-ring-rev { width: 290px; height: 290px; }
    .image-container { width: 270px; height: 270px; }
}

/* ----- Common Section Utilities ----- */
.section {
    padding: 100px 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 18px;
}

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

/* ----- Portfolio Grid ----- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.portfolio-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-2);
    font-weight: 500;
    transition: 0.3s;
}

.view-btn:hover {
    gap: 15px;
    color: var(--accent-1);
}

/* ----- Contact Section ----- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    text-align: center;
    transition: 0.4s;
}

.info-card:hover {
    border-color: var(--accent-1);
}

.info-card i {
    font-size: 30px;
    color: var(--accent-1);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-card p {
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
    background: var(--bg-card);
    padding: 0 5px;
}

/* Floating Label Magic */
.input-group input:focus, 
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-color: var(--accent-1);
}

.input-group input:focus ~ label, 
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 13px;
    color: var(--accent-1);
}

.submit-btn {
    grid-column: 1 / -1;
    width: max-content;
    border: none;
    cursor: pointer;
    gap: 10px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
}