/* =========================================
   1. GLOBAL STYLES (Fonts & Colors)
   ========================================= */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

/* =========================================
   HERO SECTION (With Background Image)
   ========================================= */
.hero {
    /* This creates a dark blue tint over the image so text is readable */
    background: linear-gradient(rgba(0, 51, 102, 0.3), rgba(0, 51, 102, 0.4)), url('csu.jpg');
    
    /* These lines ensure the image covers the whole area perfectly */
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat; 
    
    color: white;
    padding: 5rem 0; /* Increased padding slightly for a "big banner" look */
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Adds a subtle shadow to text */
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.sub-tagline {
    font-size: 1.1rem;
    opacity: 1;
    margin-bottom: 2rem;
}

/* Social Links & Resume Button */
.social-links a {
    color: white;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffcc00; /* Yellow accent on hover */
}

.btn-resume {
    background-color: white;
    color: #003366 !important;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid white;
}

.btn-resume:hover {
    background-color: transparent !important;
    color: white !important;
}

/* =========================================
   3. SECTIONS (About, Skills, Projects)
   ========================================= */
.section {
    padding: 3rem 0;
}

.about {
    background: white;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
}

.section h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* =========================================
   4. SKILLS SECTION
   ========================================= */
.skills-section {
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tag {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* =========================================
   5. PROJECT CARDS & IMAGES
   ========================================= */
.projects {
    background-color: #f4f4f9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

/* THIS IS THE IMAGE PART YOU ASKED ABOUT */
.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.card h3 {
    margin-top: 0;
    color: #003366;
}

.badge {
    background: #e0e7ff;
    color: #003366;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.about-content {
    display: flex;           /* This turns on the side-by-side mode */
    align-items: center;     /* Centers them vertically */
    justify-content: center;
    gap: 60px;               /* Space between picture and text */
    text-align: left;        /* Forces text to align left, not center */
    margin-top: 2rem;
}

.about-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;          /* Prevents the image from getting squished */
}

.about-text {
    max-width: 600px;
    text-indent: 30px;
}

/* Force mobile phones to stack them again so it doesn't look squashed */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   MOBILE REPAIR KIT
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Stack the social buttons vertically */
    .social-links {
        display: flex;
        flex-direction: column; /* This forces them into a vertical stack */
        align-items: center;    /* Centers them perfectly */
        gap: 15px;              /* Adds clean space between each button */
    }

    /* 2. Reset margins so they don't look crooked */
    .social-links a {
        margin: 0;
        width: auto;            /* Lets buttons fit their text */
    }

    /* 3. Make the main title slightly smaller to prevent wrapping */
    .hero h1 {
        font-size: 2.5rem;      
        line-height: 1.2;
    }

    /* 4. Adjust the tagline text size */
    .tagline {
        font-size: 1.1rem;
        padding: 0 10px;        /* Adds breathing room on the sides */
    }
    
    /* 5. Fix the Resume Button looking weird */
    .btn-resume {
        width: 100%;            /* Makes the button nice and wide on mobile */
        max-width: 250px;       /* ...but not TOO wide */
        display: inline-block;  /* Keeps the box shape intact */
        margin-top: 10px;       /* Extra space above the resume button */
    }
}