:root {
    --heading-scale: clamp(2rem, 5vw, 3.5rem);
    --subheading-scale: clamp(1.1rem, 3vw, 1.5rem);
    --primary-bg: #1b262c;
    --secondary-bg: #3282b8;
    --accent-color: #bbe1fa;
    --text-light: #ffffff;
}

/* Typography */
.display-1 {
    font-size: var(--heading-scale);
}

h3 small {
    font-size: var(--subheading-scale);
}

/* Global Responsive Styles */
body {
    background-color: #1b262c;
    overflow-x: hidden;
}

.navbar .nav-link.active {
    text-decoration: underline;
}

/* Responsive Text Sizing */
@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }
    h3 small {
        font-size: 0.9rem;
    }
    .skill-icon-text {
        font-size: 1.1rem !important;
    }
}

/* Equal Height Container Styles */
.equal-height-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Text Section Card Styles */
.text-section-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Profile Section Styles */
.profile-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-card {
    flex: 1;
    margin-bottom: 1rem;
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    border-radius: 50%;
}

/* Resume Card Styles */
.resume-card {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.resume-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem 1rem;
    text-align: center;
}

.resume-button {
    margin-top: 0rem;
    padding: 0.5rem 2rem;
    transition: all 0.3s ease;
}

.resume-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Skills Section Styles */
.skill-icon {
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    transition: transform 0.3s ease;
}

.skill-icon-text {
    color: var(--text-light);
    font-size: 1.3rem;
    font-family: 'Nunito', sans-serif;
}


.skill-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .skill-icon {
        width: 60px;
        height: 60px;
    }
}

/* Project Section Styles */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: var(--secondary-bg);
    border: none;
}

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

.project-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.technology-stack {
    margin-top: 1rem;
}

.technology-stack .badge {
    font-family: 'Nunito', sans-serif;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Social Media Section Styles */
.linkedin-logo {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    margin: 30px auto;
    max-width: 100%;
}

.github-stats {
    height: 300px;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .linkedin-logo {
        height: 200px;
        width: 200px;
        margin: 20px auto;
    }
    .github-stats {
        height: auto;
        margin: 20px auto;
    }
    .profile-card, .resume-card {
        margin-bottom: 1rem;
    }
}

/* Section Spacing */
.section-container {
    padding: clamp(1rem, 5vw, 3rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
}

@media (min-width: 768px) {
    .skill-icon-text {
        font-size: 1.1rem !important;
    }

    /* Profile Adjustments */
    .profile-image {
        max-width: 200px;
    }

    /* Project Adjustments */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .technology-stack .badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Section Spacing */
    
    section {
        padding: 2rem 1rem;
    }
}

/* Skills Container Layout */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.skill-item {
    text-align: center;
    margin: 0.5rem;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease;
}

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

/* General Link Styles */
a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;

}

/* Unvisited Links */
a:link {
    color: #ffffff; 
    background: transparent;
    
}

/* Visited Links */
a:visited {
    color: #ffffff; 
    background: transparent; 
}

/* Hover Effects */
a:hover {
    color: #ffc107;
    background: transparent; 
    box-shadow: 0 0 10px rgba(51, 91, 244, 0.5), 0 0 15px rgba(42, 233, 201, 0.5); 
}

/* Active Link */
a:active {
    color: #2ae9c9; 
    background: transparent; 
    transform: scale(0.98); 
}

/* Ensure Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Link */
.nav-link {
    color: #bbe1fa;
    text-decoration: none; 
    font-weight: normal; 
}

.nav-link.active-link {
    font-weight: bold; 
    text-decoration: underline; 
}

/* Media Carousel */
#mediaCarousel {
    margin: 0 auto;
    background-color: #3282b8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.carousel-item:hover .carousel-img {
    transform: scale(1.02);
}

.carousel-caption {
    background: rgba(27, 38, 44, 0.7);
    border-radius: 10px;
    padding: 15px;
    bottom: 20px;
}

.carousel-indicators button {
    background-color: #bbe1fa;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-inner {
    max-height: 700px;
}

.carousel-img {
    height: 65vh; 
    object-fit: cover; 
    object-position: center;
}

@media (max-width: 768px) {
    .carousel-inner {
        max-height: 400px;
    }

    .carousel-img {
        height: 50vh; 
    }

}
@media (max-width: 576px) {
    .carousel-inner {
        max-height: 300px;
    }

    .carousel-img {
        height: 40vh;
    }
}
.modal-content {
    background-color: #1b262c;
    color: #bbe1fa;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    overflow: hidden;
}

#hex-grid {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hex-grid .light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(51,91,244,0.5), rgba(42,233,201,0.1));
    filter: blur(100px);
    z-index: 0; 
    animation: lightPulse 5s ease-in-out infinite;
}

/* Animations */
@keyframes gridAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

@keyframes lightPulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* Main Content */
.main-content {
    position: relative;
}


#hex-grid .grid {
    position: absolute;
    top: 0;
    left: 0;
    background: url('../assets/other/background-grid.svg'); 
    width: 100%;
    height: 100%;
    z-index: 1; 
    background-size: 500px;
    animation: gridAnimation 30s linear infinite;
}
