* {
  box-sizing: inherit;
}

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  height: 100%;
}

.wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

#messagesent {
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    box-shadow: rgba(00, 00, 00, 0.8) 0 2px 8px 0;
    border: 1px solid rgba(var(--primary-color), 0.1);
    position: fixed;
    inset: 0 0 0 0;
    margin: auto;
}

::backdrop {
  backdrop-filter: blur(2px);
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --footer-bg: #343a40;
    --footer-text: #f8f9fa;
}

[data-theme="dark"] {
    --primary-color: #4cc9f0;
    --secondary-color: #4895ef;
    --text-color: #f8f9fa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --footer-bg: #000;
    --footer-text: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

/* Navbar Styles */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin: 0 10px;
    padding: 0 5px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar .logo {
    height: 40px;
    width: auto;
}

.navbar .logo-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    min-height: 490px;
}

.dark-theme .hero-section {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.5), #000000);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    /*opacity: 0;*/
}

.hero-btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Floating Animation */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px); }
}

.hero-image {
    max-width: 350px !important;
    animation: floating 3s ease-in-out infinite;
    transition: transform 0.4s ease;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Welcome Section Styles */
.welcome-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-color: var(--card-bg);
}

.welcome-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease;
}

.welcome-text {
    color: var(--text-color);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.welcome-highlights {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.welcome-highlights .badge {
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.welcome-highlights .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 10px;
}

.about-content {
    animation: fadeInUp 1s ease;
}

.about-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: scaleIn 1s ease;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

/* Links Section */
/* Updated Link Card Styles */
.link-card {
    height: 100%;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
    border: 1px solid rgba(var(--primary-color), 0.1);
}

.dark-theme .link-card {
    background-color: var(--bg-color);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.link-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.link-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.link-description {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 10px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-tag {
    display: inline-block;
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-card:hover .link-tag {
    background-color: var(--primary-color);
    color: white;
}

/* Links Section */
.links-section {
    padding: 10px 0;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.dark-theme .links-section {
    background-color: var(--card-bg);
}

.dark-theme .links-section {
    background-color: var(--card-bg);
}

.links-section-2 {
    padding: 10px 0;
    background-color: var(--bg-color);
    transition: all 0.3s ease-in-out;
}

/* Resources Section */
.resources-section {
    padding: 10px 0;
    background-color: #ffffff;
}

.dark-theme .resources-section {
    background-color: var(--card-bg);
}

.resources-section-2 {
    padding: 10px 0;
    background-color: var(--bg-color);
}

.resource-item {
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}

.resource-item:nth-child(1) { animation-delay: 0.1s; }
.resource-item:nth-child(2) { animation-delay: 0.3s; }
.resource-item:nth-child(3) { animation-delay: 0.5s; }
.resource-item:nth-child(4) { animation-delay: 0.7s; }

.resource-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 25px 0;
    bottom: 0;
    left: 0;
    right: 0;    
    position: sticky;  
    position: -webkit-sticky;   
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    opacity: 0.7;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

/* Particles JS */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.dark-theme .navbar .navbar-toggler {
    border: 1px solid #f8f9fa;;
}

.dark-theme .navbar .navbar-toggler svg {
    stroke: #f8f9fa;
}

.navbar .navbar-toggler:focus {
    box-shadow: none;
}

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }

    /* Offcanvas Menu for Mobile */
    .offcanvas {
        width: 300px !important;
        background-color: var(--card-bg);
    }

    .offcanvas-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .offcanvas-title {
        color: var(--primary-color);
        font-weight: 700;
    }

    .offcanvas-body .nav-link {
        padding: 10px 0;
        margin: 0;
    }

    .offcanvas-body .theme-toggle span {
        font-size: 16px;
        font-weight: 500;
    }

    .offcanvas .close-offcanvas {
        border: 0;
        color: #fff;
        background-color: #bb2124;
        border-radius: 4px;
        padding: 2px 5px 4px 5px;
    }

    .about-section img {
        margin-bottom: 25px;
    }

    /* Title & Sub-title */
    .section-subtitle {
        margin-bottom: 10;
    }

    .link-card {
        padding: 20px
    }
    
    .link-icon {
        margin-right: -5px;
    }

}

