/*
|--------------------------------------------------------------------------
| CSS File: style2.css
| Designer: Gemini AI Assistant
| Description: Professional, Responsive Landing Page Styles (Flexbox Fixed)
| Primary Accent Color: #00B8D9 (Vibrant Teal)
|--------------------------------------------------------------------------
*/

/* 1. Global & Reset Styles */
:root {
    /* Light Theme (Default) */
    --primary-color: #00B8D9;
    --primary-color-dark: #008C9E;
    --secondary-color: #6c757d;
    --background-light: #f8f9fa;
    --background-dark: #212529; /* Used for sections */
    --card-background: #ffffff;
    --text-color-dark: #343a40;
    --text-color-light: #ffffff;
    --shadow-light: 0 6px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
    --border-radius-base: 12px;
    --max-width: 1200px;
    --nav-height: 80px;
    --transition-speed: 0.3s;
}

/* === NEW: DARK THEME VARIABLES === */
body.dark-mode {
    --primary-color: #00B8D9;
    --primary-color-dark: #008C9E;
    --secondary-color: #adb5bd;
    --background-light: #1a1a1a; /* Main background */
    --background-dark: #121212;  /* Footer/Social bg */
    --card-background: #242424; /* Skill card bg */
    --text-color-dark: #e9ecef;  /* Primary text */
    --text-color-light: #ffffff;
    --shadow-light: 0 6px 15px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Smooth transition for theme change */
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    transition: color var(--transition-speed) ease;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--text-color-dark); }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; }

section {
    padding: 80px 20px;
    width: 100%;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    color: var(--text-color-dark);
    transition: color var(--transition-speed) ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: var(--border-radius-base);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, 
                transform 0.2s ease, 
                box-shadow var(--transition-speed) ease;
    border: none;
    text-transform: uppercase;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 5px 15px rgba(0, 184, 217, 0.3);
}

.primary-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 184, 217, 0.5);
}

/* 2. Header/Navigation Styles */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--card-background); /* Changed from fixed white */
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

/* === NEW: NAV ACTIONS CONTAINER FOR BUTTONS === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between toggle and login */
}

/* === NEW: THEME TOGGLE BUTTON STYLES === */
.theme-toggle-button {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle-button:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color-dark);
}

.logo-code-tag {
    color: var(--primary-color); 
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: -3px; 
    display: inline-block;
    transition: transform 0.4s ease, color 0.4s ease;
}

.logo-code-tag:hover {
    color: var(--primary-color-dark);
    transform: scale(1.1) rotate(-5deg);
}

.nav-links a {
    margin: 0 15px;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.4s ease-out;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 3. Hero Section Styles - FLEXBOX LAYOUT APPLIED */
.hero-section {
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 100px 40px;
    max-width: var(--max-width);
    margin: auto;
}

.hero-content {
    max-width: 700px; 
    flex-grow: 1;
}

.subheading {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.circle-img-container {
    width: 350px;
    height: 350px;
    margin-left: 50px;
    align-self: center;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border: 8px solid var(--card-background); /* Changed from fixed white */
    display: block; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color var(--transition-speed) ease;
}

.circle-img-container:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.5s ease;
}

.circle-img-container:hover .circle-img {
    filter: brightness(1.1);
}

/* 4. Social Links Bar */
.social-links-bar {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 60px 20px;
    text-align: center;
    transition: background-color var(--transition-speed) ease;
}

.social-links-bar .section-title {
    color: var(--text-color-light);
}

.social-links-bar .section-title::after {
    background-color: var(--text-color-light);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border-radius: var(--border-radius-base);
    color: var(--text-color-light);
    font-weight: 600;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
    opacity: 0.95;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-item:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.social-item i {
    font-size: 2.8rem;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.github { background-color: #333; }
.instagram { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.whatsapp { background-color: #25d366; }
.email { background-color: var(--primary-color); } 
.linkedin-alt { background-color: #0e76a8; }

/* 5. About Me Section */
.about-section {
    background-color: var(--card-background); /* Changed from fixed white */
    max-width: var(--max-width);
    margin: auto;
    padding-bottom: 50px;
    transition: background-color var(--transition-speed) ease;
}

.highlight-text {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); 
}

/* 6. Skills Section */
.skills-section {
    background-color: var(--background-light);
    max-width: var(--max-width);
    margin: auto;
    padding-top: 50px;
    transition: background-color var(--transition-speed) ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67), 
                box-shadow 0.4s ease,
                background-color var(--transition-speed) ease;
}

.skill-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-bottom: 5px solid var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color); 
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* 7. Footer Styles */
.main-footer {
    background-color: var(--background-dark);
    color: var(--secondary-color);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 5px solid var(--primary-color);
    transition: background-color var(--transition-speed) ease;
}

/* 8. Media Queries (Adjusted for Flexbox) */

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        max-width: 100%;
        order: 2;
    }
    .main-title {
        font-size: 3.5rem;
    }
    .tagline {
        font-size: 1.1rem;
        max-width: 100%;
    }
    .circle-img-container {
        width: 250px;
        height: 250px;
        margin: 0 auto 40px;
        order: 1;
    }
    .circle-img-container:hover {
        transform: scale(1.05) rotate(1deg);
    }
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .logo {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .main-title {
        font-size: 2.8rem;
    }
    .hero-section {
        padding: 100px 20px 40px;
    }
    .primary-button {
        padding: 10px 20px; /* Adjusted padding */
    }
    .social-grid {
        grid-template-columns: 1fr 1fr;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-card {
        padding: 20px;
    }
}

/* ... existing keyframes and utility classes ... */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    opacity: 0;
}
.hero-content p strong {
    color: var(--primary-color);
}
.login-link {
    white-space: nowrap; 
}
@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 2.5rem;
    }
}
.fa-react { color: #61DAFB; } 
.fa-paint-roller { color: #8d59ed; } 
.fa-html5 { color: #e34c26; } 
.fa-css3-alt { color: #264de4; }