/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.phone{
    display:none !important;
}
.desktop{
    display:block !important;
}


:root {
    --primary-blue: #002145;
    --ubc-blue: #0f4c8c;
    --accent-gold: #FFD700;
    --bright-green: #2E8B57;
    --vibrant-orange: #FF6B35;
    --energetic-red: #E53E3E;
    --pure-white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --gradient-blue: linear-gradient(135deg, #002145 0%, #0f4c8c 100%);
    --gradient-sunset: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
    --gradient-nature: linear-gradient(135deg, #2E8B57 0%, #32CD32 100%);
    --shadow-light: 0 2px 10px rgba(0, 33, 69, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 33, 69, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 33, 69, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

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

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background: var(--gradient-sunset);
    color: var(--pure-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-sunset);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background: rgba(0, 33, 69, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--pure-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-blue);
    overflow: hidden;
    height:auto;
    padding: 80px 0;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 139, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 69, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--pure-white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.candidate-name {
    display: block;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.position {
    display: block;
    font-size: 2.5rem;
    color: var(--pure-white);
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 20px;
}
.hero-subheader {
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.candidate-photo {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-gold);
    box-shadow: var(--shadow-heavy);
    position: relative;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--medium-gray);
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--pure-white);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--pure-white);
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--pure-white);
    border-bottom: 2px solid var(--pure-white);
    transform: rotate(45deg);
}

/* About Section */
.about {
    padding: 25px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--medium-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--pure-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience h4 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 33, 69, 0.1);
    position: relative;
    padding-left: 30px;
}

.experience-list li::before {
    content: '🚀';
    position: absolute;
    left: 0;
    top: 15px;
}

.about-photo {
    width: 100%;
    height: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section for Student Life */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.gallery-item {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item .photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--medium-gray);
    font-size: 1.1rem;
    font-weight: 600;
}
.gallery-item .photo-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Student Life Section */
.student-life {
    padding: 100px 0;
    background: var(--pure-white);
}

.life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.life-card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.life-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-sunset);
}

.life-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.life-card.thunderbirds::before {
    background: var(--gradient-blue);
}

.life-card.outdoors::before {
    background: var(--gradient-nature);
}

.life-card.campus::before {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
}

.life-card.vancouver::before {
    background: linear-gradient(135deg, #0f4c8c 0%, #87CEEB 100%);
}

.life-card.sports::before {
    background: linear-gradient(135deg, #E53E3E 0%, #FF6B35 100%);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-light);
}

.card-icon i {
    font-size: 2rem;
    color: var(--pure-white);
}

.gallery-section {
    margin-top: 120px;
    margin-bottom: 60px;
}


/* Platform Section */
.platform {
    padding: 100px 0;
    background: var(--light-gray);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.platform-item {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.platform-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-sunset);
}

.platform-item.blue::before {
    background: var(--gradient-blue);
}

.platform-item.green::before {
    background: var(--gradient-nature);
}

.platform-item.green_2::before {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 100%);
}

.platform-item.blue_2::before {
    background: linear-gradient(135deg, #0f4c8c 0%, #87CEEB 100%);
}

.platform-item::before {
    background: linear-gradient(135deg, #E53E3E 0%, #FF6B35 100%);
}

.platform-item h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

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

.platform-cta {
    text-align: center;
    padding: 60px;
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.platform-cta h3 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.platform-cta p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
}



/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--primary-blue);
    color: var(--pure-white);
}

.contact .section-header h2 {
    color: var(--pure-white);
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-content {
    grid-template-columns: 1fr 1fr;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.contact-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;   /* ensures same height */
  gap: 40px;
}

.contact-item {
  flex: 1;                /* equal width for all */
  text-align: center;     /* center text/icons */
  padding: 20px;
  border-radius: 10px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-sunset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--pure-white);
}

.contact-details h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-details p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px var(--accent-gold);
}

.form-group select option {
    background: var(--primary-blue);
    color: var(--pure-white);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    padding: 40px 0;
    color: var(--pure-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gradient-sunset);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-sunset);
    color: var(--pure-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .phone{
        display:flex !important;
    }
    .desktop{
        display:none !important;
    }
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;  
        gap: 40px !important;
        grid-template-columns: 1fr !important;
    }

    .hero-image {
        order: 2; /* default order for flex children */
        justify-content: center !important; /* horizontal center */
        align-items: center !important;     /* vertical center, if needed */
        margin: 0 auto !important;          /* extra safeguard */
    }

    .hero-text {
        order: 1;  /* ensure text comes first */
    }
    
    .hero-title {
        display: flex;
        flex-direction: column; /* ensures name and position stack nicely */
        order: 1;               /* hero-title comes first */
    }
    .hero-text > *:not(.hero-title) {
        order: 3; /* any other hero text (subtitle, description, buttons) comes after the image */
    }
    
    .position {
        font-size: 2rem;
    }
    
    .candidate-photo {
        width: 70vw;
        height: 70vw;
        max-width: 280px;
        max-height: 280px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .life-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    
    .contact-info {
        flex-direction: column;  /* stack them */
        gap: 20px;
    }
    .contact-item {
        width: 100%;
        justify-content: center;
    }


    
    .position {
        font-size: 1.8rem;
    }
    
    .candidate-photo {
      width: 70vw;
      height: 70vw;   /* keeps circle but shrinks on small phones */
      max-width: 250px;
      max-height: 250px;
  }

    .hero-description {
      font-size: 1rem;
      line-height: 1.5;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .life-card,
    .platform-item {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .platform-cta {
        padding: 40px 20px;
    }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;   /* single column on small phones */
    gap: 15px;
  }

  .gallery-item {
    width: 100%;                  /* prevent overflow */
    height: auto;                 /* let height scale naturally */
    aspect-ratio: 1 / 1;          /* keeps square shape */
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .candidate-photo img {
    max-width: 280px;
  }
}


.article-container {
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Centers the container */
}

.article-preview {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    gap: 20px; /* Space between stacked elements */
    background: #fff; /* Optional background */
    border-radius: 8px; /* Optional rounded corners */
    padding: 20px; /* Optional inner spacing */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Optional subtle shadow */
}

.article-image {
    width: 100%;
    
    overflow: hidden;
    border-radius: 6px; /* Optional rounded corners for image */
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills container */
}

.article-content {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    align-items: center; /* Centers the button vertically if needed */
}

.read-more {
    padding: 12px 24px;
    background-color: #3498db; /* Your primary button color */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9; /* Darker shade on hover */
}