
/* Modern CSS Reset for Responsive Designs */
* {
    margin: 0;                      /* Remove default margins */
    padding: 0;                     /* Remove default padding */
    box-sizing: border-box;         /* Includes padding and border in width/height */
}

html {
    font-size: 100%;                /* Respects user browser settings */
    -webkit-text-size-adjust: 100%; /* Prevent iOS text auto-resizing */
    scroll-behavior: smooth;        /* Smooth scroll for anchor links */
    text-wrap: pretty;              /* Fallback for older browsers */
    text-wrap: balance;             /* Improves text wrapping (modern browsers) */
}

body {
    line-height: 1.4;                      /* Better readability */
    min-height: 100vh;                     /* Full viewport height */
    text-decoration-skip-ink: auto;        /* Cleaner underlines */
    font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif; /* Modern fallback stack */
    background-color:#E6F0FA;
}

/* Lists: Remove bullets and spacing */
ul, ol {
    list-style: none;
}

/* Media: Ensure responsiveness and block layout */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;                   /* Maintain aspect ratio */
}

/* Forms: Inherit typography and reset styles */
input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Pointer cursor for all clickable UI */
a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"] {
    cursor: pointer;
}


/* Forms: Remove styling from fieldset and address */
fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

address {
    font-style: normal;
}

/* Typography: Prevent unexpected spacing and style */
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}

/* Utility classes: Spacing system using custom property */
:where(.flow > :not(.flow), main, article) > * + * {
    margin-top: var(--flow-space, 1em);
}

/* Flex and Grid fixes to avoid overflow */
:where(.flex, .grid) > * {
    min-width: 0;
}

:root {
    /* Primary Brand Colors */
    --cardinal-red: #8C1515; /* Stanford Red */
    --linkedin-blue: #0a66c2; /* LinkedIn Blue */
    --black: #1d1d1d; /* Text color */
    
    /* Supporting Colors */
    --white: #ffffff; /* Background */
    --light-gray: #F7F7F7; /* Secondary background */
    --medium-gray: #6B7280; /* Secondary text */

    /* Functional Colors */
    --success-green: #2E8540; /* Success states */
    --error-red: #D50000; /* Error states */
    --warning-gold: #F4C430; /* Warnings/highlights */
    
    /* Interactive States */
    --cardinal-red-hover: #740000; /* Hover state for Stanford Red */
    --linkedin-blue-hover: #085294; /* Hover state for LinkedIn Blue */
    --focus-outline: #1A73E8; /* Focus state outline */
}

div.top {
    background-color: var(--linkedin-blue);
   
    color: var(--white);
    width: 100%;
}

header.address {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 90%;
    max-width: 1400px;
}

.contact-info {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-weight: 600; 
    font-size: 1.1rem;
}

.contact-details a {
    text-decoration: none;
    color: var(--white);
    transition: text-decoration 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer; /* added */
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--white);
}

.phone-icon {
    fill: var(--white);
    font-size: 1.1rem;
}

.social-icons .svg-icon {
    fill: var(--white);
    transition: transform 0.2s ease, fill 0.3s ease-in-out;
}


.social-icons a:hover .svg-icon {
    fill: var(--linkedin-blue-dark);
    transform: scale(1.1);
}

.social-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    cursor: pointer; /* added */
}

.social-icons svg {
    width: 24px;
    height: 24px;
}



/* ===============================
   TYPOGRAPHY
=============================== */

h2 {
    margin-bottom: 24px;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2E2D29;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* General typography styles */
h4, h5, h6 {
    font-size: 1.3rem; /* 24px */
}

/* Hero section typography */
.hero h1 {
    font-size: 4rem;
    color: var(--error-red);
    font-weight: 800;
    -webkit-text-stroke: 1.9px var(--error-red);
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 1.25rem
}

.hero p {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
}

.hero p a {
    font-size: 1.7rem; 
    font-weight: 600;
    color: var(--warning-gold);
}

.hero p a:hover {
    font-size: 1.7rem; 
    font-weight: 600;
    color: var(--focus-outline);
}

h1 span {
    display: block;
    margin-top: 20px;
    font-size: 1em;
    color: var(--warning-gold);
}

/* ===============================
   BOX MODEL
=============================== */

/* General Box Model */
section {
    margin-bottom: 3rem;
    background-color:#E6F0FA;
}

.container {
    position: relative; /* add this */
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}


/* Ensure content is above the overlay */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero {
  position: relative; 
  top: 0;
  display: flex;
  flex-direction: column; /* Ensures content stacks properly */
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh; /* Use the taller one */
  padding: 20px 5px;
  color: var(--white);
  overflow: hidden;
  background-size: cover;
  background-position: center top; /* Moves background image upward */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Keeps the background locked while scrolling */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
}

.hero--homepage {
  background-image: linear-gradient(135deg, rgba(49, 49, 49, 0.6), rgba(26, 26, 26, 0.30)), url('../background-images/web-development-atlanta.jpg');
}

.presentation { /* ✅ Fixed the triple dash typo here */
  background-image: url('../profile-images/team-picture.jpg');
}


.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.icon-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.icon-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.icon-item svg {
    flex-shrink: 0;
    color: #3b82f6;
}

.icon-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.icon-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.team {
    position: relative;
    background-size: cover;
    min-height: 80vh;
    background-position: center top; /* Moves it downward */
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    flex-direction: column; /* Ensures content stacks properly */
    justify-content: center;
    align-items: center;
    text-align: center;
}

.team h2 {
    margin-top: 70px;
    font-size: 3.0rem;
    letter-spacing: .007em;
    font-weight: 900;
    color: var(--cardinal-red);
    text-shadow: 2px 4px 2px rgba(0, 0, 0, 0.6);

}


.team p {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 2px 4px 2px rgba(0, 0, 0, 0.6);
}


/* ===============================
   FLEX AND GRID LAYOUT
=============================== */

/* Flexbox layouts */
.contact-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.profile {
    flex: 1 1 45%;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.main-footer {
    padding: 1.75rem;
    color: var(--black);
    background-color: var(--light-gray);
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8C1515;
}

.footer-container {
    margin: 0 auto;
    width: 90%;
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}


/* ===============================
   BUTTONS AND LINKS
=============================== */

/* Button Styles */
.btn-link {
    display: inline-block;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.625rem 1.20rem;
    background-color: var(--linkedin-blue);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: .5rem;
    transition: all 0.1s ease-in-out;
    white-space: nowrap;
    cursor: pointer;
    border: 0.1875rem solid var(--white);
}

.btn-link:hover {
    background-color: var(--linkedin-blue-hover);
    color: white;
    text-decoration: none;
}

.btn-link:focus {
    outline: 0.25rem solid var(--focus-outline);
    outline-offset: 2px;
}

.button {
    display: inline-block;
    font-size: 1.20rem;
    font-weight: 900;
    padding: 0.5rem 1.0rem;
    color: var(--linkedin-blue);
    background-color: var(--white);
    border: 0.1725rem solid var(--linkedin-blue);
    text-align: center;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
    border-radius: 1.50rem;
    cursor: pointer;
    text-decoration-line: none;
    white-space: nowrap;
}

.button:hover {
    background-color: #e5f1fb;
    border-color: var(--linkedin-blue-hover);
    text-decoration: none;
}

.button:active {
    background-color: #cce5f5;
    border-color: var(--linkedin-blue-hover);
}

.button:focus {
    outline: 0.25rem solid var(--focus-outline);
    outline-offset: 2px;
}

/* Stanford branded button variant */
.button-stanford {
    color: var(--white);
    background-color: var(--cardinal-red);
    border: 0.1725rem solid var(--cardinal-red);
}

.button-stanford:hover {
    background-color: var(--cardinal-red-hover);
    border-color: var(--cardinal-red-hover);
}

.button-stanford:active {
    background-color: var(--cardinal-red-hover);
    border-color: var(--cardinal-red-hover);
}

/* Link Styles */
a {
    text-decoration: none;
    color: var(--linkedin-blue);
    font-size: 1.15rem;
}

a:hover {
    color: var(--linkedin-blue);
    text-decoration: underline;
}

a:focus {
    outline: 0.25rem solid var(--focus-outline);
    outline-offset: 2px;
}

/* ===============================
   FOOTER STYLES
=============================== */

/* Footer column and links */
.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cardinal-red);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-weight: 1.2rem;
}

.footer-column a:hover {
    color: var(--cardinal-red);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;

    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    font-size: 1.5rem;
}

.copyright p {
    text-align: center;
    font-size: 1.5rem;
}

#slogan {
    color: var(--cardinal-red);
}
  

/* ===============================
   CAROUSEL STYLES
=============================== */

.carousel-section {
    padding: 2rem 0;
    background-color: var(--light-gray);
}

.carousel-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
}

.carousel-item h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.carousel-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto;
    color: var(--medium-gray);
}

/* Success and Error Message Styles */
.success-message {
    background-color: rgba(46, 133, 64, 0.1);
    border: 1px solid var(--success-green);
 
    color: var(--success-green);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.error-message {
    background-color: rgba(213, 0, 0, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.warning-message {
    background-color: rgba(244, 196, 48, 0.1);
    border: 1px solid var(--warning-gold);
    color: var(--black);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ===============================
   MEDIA QUERIES FOR RESPONSIVENESS
=============================== */

@media screen and (max-width: 768px) {
    .contact-info,
    .social-icons {
        display: none;
    }
    
    #top-contact-bar {
      display: none;
    }

    /* Center the remaining contact details (phone icon and number) */
    .address {
        justify-content: center;
    }
    .contact-details {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero h1, 
    .hero p {
        max-width: 90%; /* Ensures text doesn't overflow */
        word-wrap: break-word; /* Forces long words to wrap */
        text-align: center; /* Keeps text centered */
    }

    .hero {
        background-attachment: scroll; /* Reverts to default/static */
        background-position: center center; /* Center the image better on small screens */
        background-size: cover; /* Ensures full coverage even on narrow viewports */
        min-height: 60vh;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero h1 span {
        font-size: 1.6rem;
        text-align: center;
        margin-top: 0.3rem;
    }

    .hero p {
        font-size: 1.4rem;
        line-height: 1.5;
        width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .btn-link {
        display: block;
        width: 50%;
        text-align: center;
        margin: 0 auto;
        padding: 0.75rem;
        display: flex;
        flex-direction: column; /* Ensures content stacks properly */
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

   
    .footer-column {
        width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    .footer-column h3 {
        font-size: 1.5rem;
    }
  
    .carousel-item h2 {
        font-size: 1.8rem;
    }
    
    .profiles {
        flex-direction: column;
    }
    
    .profile {
        flex: 1 1 100%;
    }

    
/* Responsive Design */
@media screen and (max-width: 768px) {
    header.address {
        flex-direction: column;
        gap: 0.5rem;
        width: 95%;
        padding: 0.5rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .social-icons {
        margin-top: 0.5rem;
    }
}

/* Accessibility Enhancements */
a:focus {
    outline: 2px solid var(--linkedin-blue);
    outline-offset: 2px;
}

svg {
    vertical-align: middle;
}
}

