/* General Styling */
:root {
    --primary-color: #0466c8; /* true-blue */
    --secondary-color: #5c677d; /* paynes-gray */
    --dark-color: #002855; /* oxford-blue */
    --light-color: #f8f9fa; /* Keeping a very light background for contrast */
    --white-color: #ffffff;
    --grey-light: #e9ecef; /* Keeping a light grey for alternating sections */
    --text-color: #001845; /* oxford-blue (from the #001845 variant) for main text */

    /* New palette variables */
    --true-blue: #0466c8;
    --sapphire: #0353a4;
    --yale-blue: #023e7d;
    --oxford-blue-main: #002855; /* Main oxford-blue */
    --oxford-blue-2: #001845; /* Second oxford-blue variant */
    --oxford-blue-3: #001233; /* Third oxford-blue variant */
    --delft-blue: #33415c;
    --paynes-gray: #5c677d;
    --slate-gray: #7d8597;
    --cool-gray: #979dac;

    /* Dark Mode Palette */
    --dark-bg-primary: #121212;
    --dark-bg-secondary: #1e1e1e;
    --dark-card-bg: #282828;
    --dark-text-primary: #e0e0e0;
    --dark-text-secondary: #b0b0b0;
    --dark-accent-blue: #0466c8; /* Using true-blue for accent */
    --dark-border: #333333;

    /* New gradient colors */
    --gradient-black: #000000;
    --gradient-red: #4d0000;
    --gradient-purple: #330033;
    --gradient-dark-blue: #023e7d; /* Using Yale Blue for a darker blue shade */

    /* Dynamic background colors */
    --dynamic-shade-1: rgba(77, 0, 0, 0.2);
    --dynamic-shade-2: rgba(51, 0, 51, 0.2);
    --dynamic-shade-3: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, var(--gradient-black) 0%, var(--gradient-dark-blue) 50%, var(--gradient-red) 100%); /* Dark gradient: black, dark blue, red */
    background-size: 100% 100%; /* No longer animated, so cover full size */
    background-attachment: fixed; /* Ensures gradient covers full height and scrolls with content */
    animation: none; /* Remove backgroundPan animation */
    color: var(--dark-text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text-primary);
}

a {
    color: var(--dark-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sapphire);
}

/* Header */
header {
    background: linear-gradient(to right, var(--gradient-black), var(--gradient-red), var(--gradient-purple));
    color: var(--dark-text-primary);
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Ensure header can contain absolutely positioned canvas */
    overflow: hidden; /* Hide any overflow from the canvas */
}

#header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0; /* Ensures it stays behind header content */
}

header h1 {
    margin: 0;
    font-size: 3.5rem;
    color: var(--dark-text-primary); /* Fallback for browsers not supporting text-fill-color */
    background: linear-gradient(90deg, var(--dark-accent-blue) 0%, var(--sapphire) 50%, var(--yale-blue) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite alternate;
    position: relative; /* Ensure text is above canvas */
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header p {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--dark-text-secondary);
    position: relative; /* Ensure text is above canvas */
    z-index: 1;
}

.header-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative; /* Ensure icons are above canvas */
    z-index: 1;
}

.header-icons i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.header-icons i:hover {
    transform: translateY(-5px);
}

/* Specific colors for technology icons */
.fab.fa-html5 {
    color: #E44D26; /* HTML5 Orange */
}

.fab.fa-css3-alt {
    color: #1572B6; /* CSS3 Blue */
}

.fab.fa-js {
    color: #F7DF1E; /* JavaScript Yellow */
}

.fab.fa-java {
    color: #E62429; /* Java Red/Orange */
}

.fas.fa-database {
    color: #00758F; /* MySQL Blue (generic database icon) */
}

.fab.fa-aws {
    color: #FF9900; /* AWS Orange */
}

.fab.fa-jenkins {
    color: #4169E1; /* Jenkins Royal Blue */
}

.fas.fa-box-open {
    color: #C71A36; /* Maven Red/Orange (generic box-open for Maven) */
}

/* Navigation */
nav {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav a {
    color: var(--dark-text-primary);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dark-accent-blue);
    transition: width 0.3s ease-in-out;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content Area */
main {
    padding-top: 3rem; /* Add space from the top, pushing content below nav */
}

/* Sections */
section {
    padding: 4rem 0;
    background-color: var(--dark-bg-secondary); /* Default background for sections */
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

section:nth-of-type(even) {
    background-color: var(--dark-bg-primary); /* Even sections slightly darker */
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--dark-accent-blue);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
#about {
    background-color: var(--delft-blue); /* New background color for About Me */
}

#about p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Projects Section */
#projects {
    background-color: var(--paynes-gray); /* New background color for Projects Section */
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.skill-category {
    background: var(--dark-card-bg); /* Dark card background */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 25px var(--dark-accent-blue); /* Blue shadow for dark mode */
}

.skill-category h3 {
    color: var(--dark-accent-blue);
    margin-top: 0;
    border-bottom: 2px solid var(--dark-border);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

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

.skill-category ul li {
    padding: 0.4rem 0;
    font-size: 1rem;
    color: var(--dark-text-secondary); /* Lighter text for list items */
}

/* Projects Section */
.project-card {
    background: var(--dark-card-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 20px;
    margin-right: 20px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 0, 0, 0.7); /* Prominent red box-shadow */
}

.project-card h3, .project-card p, .project-card a {
    /* Removed position: relative; and z-index: 1; */
}

.project-card h3 {
    color: var(--dark-accent-blue);
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--dark-text-secondary);
}

.project-card p strong {
    color: var(--dark-text-primary);
}

.project-card a {
    color: var(--dark-accent-blue);
    margin-right: 1rem;
    font-weight: 600;
}

/* Internships Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--dark-border); /* Darker timeline line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 47%;
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 53%;
}

.timeline-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--dark-text-secondary); /* Date color for dark mode */
    font-size: 1rem;
    width: 120px;
    text-align: right;
    left: calc(50% - 170px);
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    left: calc(50% + 50px);
}

.timeline-content {
    background: var(--dark-card-bg); /* Dark card background */
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); /* Darker shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-right: 30px;
    border: 1px solid var(--dark-border);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 20px;
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
    margin-right: 20px;
}

/* Connecting line to the center */
.timeline-content::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--dark-accent-blue);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -28px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -28px;
}

.timeline-content h3, .timeline-content p, .timeline-content ul li {
    position: relative;
    z-index: 1;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 30px var(--dark-accent-blue); /* Prominent blue box-shadow */
}

/* Alternating background for timeline items (all white for now) */
.timeline-item:nth-child(odd) .timeline-content {
    background-color: var(--dark-card-bg);
}

.timeline-item:nth-child(even) .timeline-content {
    background-color: var(--dark-card-bg);
}

/* Contact Section */
#contact p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

#contact ul {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#contact ul li {
    margin: 0 1.5rem 1rem;
    font-size: 1.1rem;
}

#contact ul li a {
    font-weight: 600;
    color: var(--dark-accent-blue);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark-bg-secondary);
    color: var(--dark-text-secondary);
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    section {
        padding: 2rem 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .project-card, .timeline-content {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    #contact ul li {
        margin: 0.5rem 1rem;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        left: 0 !important;
    }

    .timeline-item:nth-child(even) {
        left: 0 !important;
    }

    .timeline-date {
        position: static;
        width: auto;
        text-align: left;
        transform: none;
        margin-bottom: 0.5rem;
        margin-left: 0;
        font-size: 0.9rem;
        color: var(--dark-text-secondary);
    }

    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        left: auto;
    }

    .timeline-content {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
    }

    .timeline-content::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .project-card h3 {
        font-size: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    #contact ul li {
        font-size: 1rem;
    }
} 