/* === Global Setup & Variables === */
:root {
    --bg-dark: #232526;
    --bg-dark-rgb: 35,37,38; /* helper for rgba usage */
    --bg-light: #414345;
    --bg-light-rgb: 65,67,69; /* helper for rgba usage */
    --accent: #FFC107; /* Gold/Amber accent */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

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

/* === Utility Classes === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    margin-left: 1rem;
}
.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* --- Google Skills CTA (attractive & mobile-friendly) --- */
.google-skills-container {
    text-align: center;
}
.google-skills-container .view-profile-btn {
    display: inline-block;
    background: linear-gradient(90deg, #FFC107 0%, #FFD54A 100%);
    color: var(--bg-dark);
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-decoration: none;
    margin-top: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.google-skills-container .view-profile-btn:hover,
.google-skills-container .view-profile-btn:focus {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

/* Make CTA full-width and comfortable on small screens */
@media (max-width: 600px) {
    .google-skills-container .view-profile-btn {
        display: block;
        width: calc(100% - 2rem);
        max-width: 420px;
        margin: 1rem auto 0;
        padding: 0.95rem 1rem;
        font-size: 1rem;
    }
}

/* === Navbar === */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-dark);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--bg-light);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.nav-logo:hover {
    color: var(--accent);
}
.navbar nav ul {
    display: flex;
    list-style: none;
}
.navbar nav li {
    margin-left: 2rem;
}
.navbar nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar nav a:hover {
    color: var(--accent);
}

/* === Section 1: Hero === */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 3rem;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.typing {
    color: var(--accent);
    font-weight: 500;
}
/* Typing cursor effect */
.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.hero-image {
    flex: 0 0 350px;
    text-align: center;
}
.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 50%;
    border: 7px solid var(--bg-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* === Section 2: About === */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.about-list {
    list-style: none;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.about-list li {
    margin-bottom: 0.5rem;
}
.about-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}
.about-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}
.about-summary ul {
    list-style: none;
}
.about-summary li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.about-summary i {
    color: var(--accent);
    margin-right: 0.75rem;
}

/* === Section 3: Experience === */
.experience-container {
    display: flex;
    gap: 3rem;
}
.experience-tabs {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
}
.tab-link {
    background: transparent;
    border: none;
    border-left: 3px solid var(--bg-light);
    color: var(--text-secondary);
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-link:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}
.tab-link.active {
    border-left-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--bg-light-rgb), 0.2);
}
.tab-content {
    flex: 1;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    display: none; /* Hidden by default */
}
.tab-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.tab-content h3 span {
    color: var(--accent);
    font-weight: 600;
}
.tab-content .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}
.tab-content ul {
    margin-left: 1.5rem;
}
.tab-content li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.experience-image-placeholder {
    width: 100%;
    border-radius: 8px;
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* === Section 4: Showcase === */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.showcase-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #4a4d4f;
}
.showcase-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.showcase-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.showcase-card p {
    color: var(--text-secondary);
}
.google-skills-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center;
}
.google-skills-container h3 {
    font-size: 1.75rem;
    color: var(--accent);
}

/* === Section 5: Skills === */
.skill-category {
    margin-bottom: 2.5rem;
}
.skill-category h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.skill-tag {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.skill-tag:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* === Section 6: Contact === */
.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.contact-form label {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--bg-light);
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.social-links {
    margin-bottom: 2rem;
}
.social-links a {
    color: var(--text-secondary);
    font-size: 2.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent);
}

/* Image-based social icons (GeeksforGeeks, Unstop) - match size & hover behaviour */
.social-img-link img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
    margin-right: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.95;
}
.social-img-link:hover img {
    transform: translateY(-3px);
    filter: none; /* remove grayscale on hover */
    opacity: 1;
}

/* Ensure footer social images use same sizing */
.footer .social-links .social-img-link img {
    width: 1.75rem; /* smaller in footer to match existing footer icon sizing */
    height: 1.75rem;
    margin-right: 1rem;
}
/* Image-based social icons (GeeksforGeeks, Unstop) */
/* Show original SVG colors (no grayscale) and match the font-icon sizing in each area. */
.social-img-link img {
    width: 2.5rem; /* default size to match .social-links a icons */
    height: 2.5rem;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
    margin-right: 1.5rem;
    filter: none; /* keep original SVG colors */
    opacity: 1;
}

.social-img-link:hover img {
    transform: translateY(-3px);
    opacity: 1;
}

/* Footer: use the smaller icon size to match footer font icons */
.footer .social-links {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
}
.footer .social-links .social-img-link img {
    width: 1.75rem; /* match .footer .social-links a font-size */
    height: 1.75rem;
    margin-right: 0;
}
.contact-info h4 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.platform-links {
    display: flex;
    gap: 1rem;
}
.platform-logo img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.platform-logo:hover img {
    opacity: 1;
}

/* === Footer === */
.footer {
    padding: 3rem 0;
    background: var(--bg-light);
    text-align: center;
    margin-top: 3rem;
}
.footer .social-links a {
    font-size: 1.75rem;
}
.footer p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* === Scroll Animations === */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-image {
        margin-bottom: 2rem;
        flex-basis: auto;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .experience-container {
        flex-direction: column;
    }
    .experience-tabs {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        flex: 1;
    }
    .tab-link {
        border-left: none;
        border-bottom: 3px solid var(--bg-light);
    }
    .tab-link.active {
        border-left-color: none;
        border-bottom-color: var(--accent);
    }
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .navbar .container {
        /* Keep logo and toggle on one row, compact spacing */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    /* Mobile: hide the nav by default and show a hamburger */
    .nav-toggle {
        display: none; /* default hidden on larger screens */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        margin-left: 0.5rem;
    }
    .nav-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--text-primary);
        margin: 4px 0;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    /* Show toggle on small screens and align it to the right */
    .nav-toggle {
        display: block;
        margin-left: auto; /* push toggle to far right */
    }

    /* Hide nav links by default on mobile */
    .navbar nav ul {
        display: none;
        margin-top: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        flex-direction: column;
    }
    .navbar nav li {
        margin: 0.25rem 0.5rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .subtitle {
        font-size: 1.25rem;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* When navbar has .open, display the nav on mobile */
.navbar.open nav ul {
    display: flex;
}

/* Optional: animate toggle into 'X' when open */
.navbar.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.navbar.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Make embedded iframe responsive on small screens */
.iframe-wrapper iframe {
    height: 520px; /* default for medium screens */
}
@media (max-width: 900px) {
    .iframe-wrapper iframe {
        height: 520px;
    }
}
@media (max-width: 600px) {
    .iframe-wrapper iframe {
        height: 420px; /* reduce height on small devices for better fit */
    }
}