/* CSS for portfolio website (Embedded) */

/* CSS Variables for easy theme customization (Light Mode Defaults) */
:root {
    --primary-color: #007bff;
    /* Blue */
    --secondary-color: #6c757d;
    /* Gray */
    --text-color: #333;
    /* Dark Gray */
    --light-text-color: #f8f9fa;
    /* Off-white */
    --background-color: #ffffff;
    /* White */
    --light-background-color: #f8f9fa;
    /* Light Gray */
    --border-color: #e9ecef;
    /* Lighter Gray */
    --font-family: 'Inter', sans-serif;
    --heading-font-weight: 700;
    --body-font-weight: 400;
    --border-radius: 8px;
    --transition-speed: 0.3s;

    /* Crypto Ticker Specific Variables (Light Mode) */
    --ticker-height: 40px;
    /* Height of the moving ticker */
    --ticker-bg: #f0f8ff;
    /* Light blue background for ticker */
    --ticker-text-color: #0056b3;
    /* Darker blue for ticker text */
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #8ab4f8;
    /* Lighter blue for dark mode accents */
    --secondary-color: #a0a0a0;
    /* Lighter gray */
    --text-color: #e0e0e0;
    /* Light gray for main text */
    --light-text-color: #2c2c2c;
    /* Dark text on elements that were light */
    --background-color: #1a1a1a;
    /* Dark charcoal background */
    --light-background-color: #2c2c2c;
    /* Slightly lighter dark background */
    --border-color: #444444;
    /* Darker border */

    /* Crypto Ticker Specific Variables (Dark Mode) */
    --ticker-bg: #222222;
    /* Darker background for ticker in dark mode */
    --ticker-text-color: #8ab4f8;
    /* Lighter blue for ticker text in dark mode */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Smooth transitions for theme changes */
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-background-color);
    transition: background-color var(--transition-speed) ease;
    /* Transition for light background */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--heading-font-weight);
    margin-bottom: 20px;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
    /* Transition for heading colors */
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

h4 {
    font-size: 1.4em;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #0056b3;
    /* Darker blue */
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}

.primary-btn:hover {
    background-color: #0056b3;
    /* Darker blue */
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Header and Navigation */
.header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.8em;
    font-weight: var(--heading-font-weight);
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 100px;
    /* Adjust as needed */
    width: 100px;
    /*border-radius: 50%;*/
    /* Make it round if desired */
    margin-right: 10px;
    /* Space between logo and name if name is kept */
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all var(--transition-speed) ease-in-out;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    /* Inherit text color from theme */
    font-size: 1.5em;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    margin-left: 20px;
    /* Space from nav links */
    padding: 5px;
    /* Make it easier to click */
    display: flex;
    /* Use flex to center icon */
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
}

.dark-mode-toggle .fa-sun {
    color: #f39c12;
    /* Sun yellow for dark mode */
}

.dark-mode-toggle .fa-moon {
    color: var(--text-color);
    /* Moon color in light mode */
}

/* Crypto Ticker Bar (New Section) */
.crypto-ticker-bar {
    position: fixed;
    top: 70px;
    /* Adjust based on header height, e.g., 70px if header is 70px tall */
    width: 100%;
    height: var(--ticker-height);
    background-color: var(--ticker-bg);
    overflow: hidden;
    white-space: nowrap;
    z-index: 999;
    /* Below header, above content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    /* Use flex to align content vertically */
    align-items: center;
    /* Center content vertically */
    padding: 0 20px;
    /* Add some padding */
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.crypto-ticker-content {
    display: inline-block;
    /* Essential for continuous scrolling */
    animation: tickerScroll 80s linear infinite;
    /* Adjusted from 60s to 120s for slower speed */
    font-size: 0.95em;
    color: var(--ticker-text-color);
    padding-right: 100%;
    /* Ensures content scrolls fully off screen before repeating */
}

.crypto-ticker-item {
    display: inline-block;
    margin-right: 30px;
    /* Space between items */
    padding: 5px 0;
    font-weight: 600;
}

.crypto-ticker-item .price-up {
    color: #28a745;
    /* Green */
}

.crypto-ticker-item .price-down {
    color: #dc3545;
    /* Red */
}

.crypto-ticker-item .loading-text,
.crypto-ticker-item .error-text {
    color: var(--secondary-color);
    font-style: italic;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Adjust main content padding to account for the header and ticker bar */
main {
    padding-top: calc(70px + var(--ticker-height));
    /* Header height + ticker height */
}


/* Hero Section */
.hero-section {
    height: 100vh;
    /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6dd5ed 100%);
    /* Gradient background */
    color: var(--light-text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    color: var(--light-text-color);
    animation: fadeInDown 1s ease-out;
}

.hero-content .tagline {
    font-size: 1.8em;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-content .intro-text {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-section .btn {
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 50px;
    background-color: var(--light-text-color);
    color: var(--primary-color);
    border-color: var(--light-text-color);
    opacity: 0;
    animation: zoomIn 1s ease-out 0.9s forwards;
}

.hero-section .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0056b3;
    transform: scale(1.05);
}

/* Section Headings */
.about-section h2,
.projects-section h2,
.experience-section h2,
#social-connect h2 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 50px;
}

.about-section h2::after,
.projects-section h2::after,
.experience-section h2::after,
#social-connect h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: background-color var(--transition-speed) ease;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.skill-category {
    background-color: var(--light-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    transition: border-color var(--transition-speed) ease;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    margin-bottom: 10px;
    font-size: 1.05em;
    position: relative;
    padding-left: 25px;
    display: flex;
    align-items: center;
}

.skill-category li .fa-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.skill-category li::before {
    content: none;
}


/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-icon-container {
    margin-bottom: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: background-color var(--transition-speed) ease;
}

.project-icon-container .fa-icon {
    font-size: 3em;
    color: var(--light-text-color);
    margin-right: 0;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-card h3 .fa-icon {
    margin-right: 0;
    font-size: 1em;
    color: inherit;
}

.project-card .project-description {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-card .project-tech {
    font-size: 0.85em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-links .btn {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* Experience Section */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

.experience-entry {
    background-color: var(--light-background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

.experience-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.experience-entry::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 30px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--background-color);
    z-index: 1;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.experience-header h3 {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 1.3em;
}

.experience-dates {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.experience-company {
    font-style: italic;
    margin-bottom: 10px;
    color: var(--text-color);
}

.experience-responsibilities {
    list-style: disc;
    margin-left: 20px;
    font-size: 0.95em;
    color: var(--text-color);
}

.experience-responsibilities li {
    margin-bottom: 8px;
}

/* Social Links */
.social-links {
    text-align: center;
    margin-top: 40px;
    font-size: 2.5em;
    padding-bottom: 20px;
}

.social-links a {
    color: var(--text-color);
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--light-text-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-nav-links {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-nav-links a {
    color: var(--light-text-color);
    opacity: 0.8;
}

.footer-nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Responsive Design - Mobile First */

/* Small devices (phones, 600px and down) */
@media (max-width: 600px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 15px;
    }

    .site-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    /* Adjust dark mode toggle position for mobile */
    .dark-mode-toggle {
        position: absolute;
        right: 60px;
        /* To the left of hamburger */
        top: 20px;
    }

    /* Adjust ticker bar position for mobile */
    .crypto-ticker-bar {
        top: 60px;
        /* Adjusted header height for mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        padding: 10px 0;
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content .tagline {
        font-size: 1.3em;
    }

    .hero-content .intro-text {
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-links {
        justify-content: center;
    }

    .experience-timeline {
        padding-left: 15px;
    }

    .experience-entry::before {
        left: -18px;
    }

    .social-links {
        font-size: 2em;
    }

    .social-links a {
        margin: 0 10px;
    }

    /* Adjust main content padding for mobile */
    main {
        padding-top: calc(60px + var(--ticker-height));
        /* Adjusted header height + ticker height for mobile */
    }
}

/* Medium devices (tablets, 601px to 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    .hero-content h1 {
        font-size: 3.8em;
    }

    .hero-content .tagline {
        font-size: 1.6em;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Large devices (desktops, 901px and up) */
@media (min-width: 901px) {
    .navbar {
        padding: 20px 40px;
    }

    .hero-content h1 {
        font-size: 4.5em;
    }

    .hero-content .tagline {
        font-size: 1.8em;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* .eaglelogo {
    width: 160px;
    height: 180px;
} */
