:root {
    --primary-color: #0d6efd;
    --secondary-color: #adb5bd; /* Lighter gray for dark mode text */
    --border-radius: 16px;
    --transition-speed: 0.4s; /* Slightly slower for a smoother feel */
    --bg-color: #0b0c10;
    --text-color: #e9ecef;
    --card-bg: rgba(30, 40, 50, 0.6);
    --navbar-bg: rgba(11, 12, 16, 0.5);
    --footer-bg: #10161d;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    padding-top: 70px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h2, .aurora-title {
    background: linear-gradient(90deg, #ff8a00, #e52e71, #007bff, #00c6ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 5s ease infinite;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #007bff, #00c6ff);
    background-size: 200% 200%;
    animation: draw-underline 2s ease-out forwards, aurora-text 5s ease infinite;
    transform-origin: left;
}

@keyframes draw-underline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}


/* Blurry Background Effect */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-shapes::before, .background-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.background-shapes::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), #6610f2);
    top: -100px;
    left: -100px;
    animation: move-glow-1 20s infinite alternate;
}

.background-shapes::after {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff007f, #ffae00);
    bottom: -50px;
    right: -50px;
    animation: move-glow-2 25s infinite alternate;
}

@keyframes move-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(200px, 150px) scale(1.2) rotate(90deg); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes move-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-150px, -100px) scale(0.8) rotate(-90deg); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Glassmorphism Navbar */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-glass {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-color);
}

.navbar-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #007bff, #00c6ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-text 4s ease infinite;
    transition: text-shadow 0.3s;
}

.nav-link:hover, .nav-link.active {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #8e44ad);
    border: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    position: relative;
    color: white;
}

.hero-section.hero-compact {
    padding: 60px 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.aurora-title {
    font-weight: 700;
}

@keyframes aurora-text {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

/* Section Card */
.section-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    background-color: var(--card-bg);
    margin-bottom: 2rem;
}

/* Tool Cards */
.tool-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.tool-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.tool-card-body {
    padding: 1rem;
}

.tool-card-body p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card .btn-outline-primary {
    border-width: 2px;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
}

.tool-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 4rem 0 0;
}

.footer .section-card {
    margin-bottom: 0;
}

.footer .text-muted {
    color: var(--secondary-color) !important;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color var(--transition-speed);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

/* About Page Specifics */
.creator-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    padding: 5px;
    background-color: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    filter: grayscale(100%);
    transition: filter var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.creator-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

.creator-details .text-muted {
    color: var(--secondary-color) !important;
}

.creator-buttons {
    display: flex;
    gap: 1rem;
}

.creator-buttons .btn {
    flex-grow: 1;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all var(--transition-speed) ease-in-out;
}

.creator-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #6610f2);
    border: none;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.creator-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.5);
}

.creator-buttons .btn-outline-primary {
    border-width: 2px;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.creator-buttons .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.social-icons-profile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0 0.4rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease-in-out;
}

.social-icons-profile a:hover {
    color: white;
    transform: translateY(-3px);
}

/* Brand color hovers */
.social-icons-profile a:has(.bi-twitter-x):hover {
    background-color: #000000;
    border-color: #000000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.social-icons-profile a:has(.bi-linkedin):hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}
.social-icons-profile a:has(.bi-github):hover {
    background-color: #181717;
    border-color: #181717;
    box-shadow: 0 8px 20px rgba(24, 23, 23, 0.5);
}
.social-icons-profile a:has(.bi-facebook):hover {
    background-color: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}
.social-icons-profile a:has(.bi-instagram):hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    border-color: #d6249f;
    box-shadow: 0 8px 20px rgba(214, 36, 159, 0.4);
}

/* Contact Page Specifics */
.contact-graphic-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.contact-graphic-container img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

.form-control {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: rgba(0,0,0,0.3);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25), 0 0 15px rgba(13, 110, 253, 0.3);
}

/* Project Page Specifics */
.project-card {
    padding: 0;
    overflow: hidden;
}

.project-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.project-card-body {
    padding: 1.5rem;
}

.project-card .text-muted {
    color: var(--secondary-color) !important;
}

/* Policy Page Specifics */
.policy-content p {
    line-height: 1.8;
    color: var(--secondary-color);
}

.policy-content h3 {
    color: var(--text-color);
}

.policy-content ul {
    list-style-position: inside;
    padding-left: 0;
}

/* Value Cards */
.value-card {
    text-align: left;
    padding: 2rem;
}

.value-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(13, 110, 253, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgba(13, 110, 253, 0.2);
    transition: all var(--transition-speed) ease-in-out;
}

.value-card:hover .icon {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
}

.value-card h4 {
    color: var(--text-color);
}

.value-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.7;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    background-color: rgba(0,0,0,0.2);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.subscribe-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.subscribe-form .form-control {
    background: transparent;
    border: none;
    color: var(--text-color);
    flex-grow: 1;
    padding-left: 1.5rem;
}

.subscribe-form .form-control:focus {
    box-shadow: none;
}

.subscribe-form .btn-primary {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-color);
}
