/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    /* Dark Theme Colors */
    --background-start: #0a0a0f; /* Black */
    --background-mid: #1a1a2e;   /* Deep Blue */
    --background-end: #2a0a3f;   /* Dark Purple */

    --primary-text-color: #e0e0e0; /* Light Grey */
    --secondary-text-color: #a0a0a0; /* Darker Light Grey */

    --card-background-color: rgba(25, 25, 40, 0.7); /* Dark translucent card */
    --border-color: rgba(60, 60, 90, 0.5); /* Subtle dark border */

    /* Accent/Link Colors */
    --accent-color-light: #8a2be2; /* Blue Violet (Purple Glow start) */
    --accent-color-dark: #4b0082; /* Indigo (Purple Glow end) */
    --link-color: #00bcd4; /* Cyan/Turquoise */
    --hover-link-color: #0097a7; /* Darker Cyan */

    /* Glass/Glow Effects */
    --header-footer-bg: rgba(25, 25, 40, 0.5); /* Translucent dark for header/footer */
    --box-shadow-glow: 0 0 15px rgba(138, 43, 226, 0.4), 0 0 30px rgba(0, 188, 212, 0.3); /* Purple-Cyan glow */
    --button-gradient: linear-gradient(90deg, #8a2be2 0%, #00bcd4 100%); /* Purple to Cyan gradient */
    --button-gradient-hover: linear-gradient(90deg, #00bcd4 0%, #8a2be2 100%); /* Reverse gradient for hover */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--primary-text-color);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--background-start) 0%, var(--background-mid) 50%, var(--background-end) 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll due to potential overflows */
}

.container {
    max-width: 1200px; /* Increased max-width for modern feel */
    margin: 0 auto;
    padding: 30px; /* Increased padding for more breathing room */
    flex-grow: 1;
}

header {
    background-color: var(--header-footer-bg);
    padding: 20px 0; /* Increased padding */
    backdrop-filter: blur(10px); /* Glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: var(--box-shadow-glow); /* Subtle glow */
    position: sticky; /* Keep header visible */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
    border-bottom: 1px solid var(--border-color); /* Subtle border */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    /* No font styling needed, as it now contains an image */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8; /* Subtle hover effect for the logo */
}

.navbar-logo {
    height: 75px; /* Set logo height for desktop */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align with middle of text elements if any */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center everything in the navbar */
    padding: 0 30px;
}

nav ul li {
    margin-left: 50px; /* Increased spacing between logo and menu items */
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 600; /* Bolder navigation links */
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--link-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--link-color);
    transform: translateY(-2px);
}

.hero {
    min-height: 70vh; /* Make hero section larger */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px; /* Increased padding */
    margin-bottom: 80px; /* More breathing room */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    animation: pulseGlow 10s infinite alternate;
    z-index: -1;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 0.9; }
    100% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
}


.hero h1 {
    font-size: 4.5em; /* Huge heading */
    font-weight: 800; /* Extra bold */
    margin-bottom: 25px;
    color: var(--primary-text-color);
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.4); /* Subtle text glow */
}

.hero p {
    font-size: 1.4em; /* Larger body text */
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-text-color);
    font-weight: 300; /* Lighter body text */
}

section {
    padding: 80px 0; /* Increased spacing between sections */
    margin-bottom: 0;
    position: relative;
    z-index: 1; /* Ensure content is above background effects */
}

h2 {
    font-size: 3.5em; /* Huge headings */
    color: var(--primary-text-color);
    text-align: center;
    margin-bottom: 60px; /* More spacing */
    position: relative;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px; /* Adjust position */
    transform: translateX(-50%);
    width: 100px; /* Wider underline */
    height: 4px; /* Thicker underline */
    background: var(--button-gradient); /* Gradient underline */
    border-radius: 2px;
}

h3 {
    color: var(--primary-text-color);
    font-size: 2em; /* Larger h3 */
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

p {
    margin-bottom: 1.5em; /* More spacing for paragraphs */
    font-weight: 300; /* Lighter body text */
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Larger cards */
    gap: 40px; /* Increased gap */
    padding-top: 20px;
}

.card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* More rounded corners */
    padding: 35px; /* Increased padding */
    box-shadow: var(--box-shadow-glow); /* Subtle glow effect */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 0%, rgba(138, 43, 226, 0.05) 40%, rgba(0, 188, 212, 0.05) 60%, transparent 100%);
    transform: rotate(45deg);
    transition: transform 0.5s ease-out;
    opacity: 0;
}

.card:hover::before {
    transform: rotate(45deg) translate(20%, 20%);
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02); /* More pronounced hover effect */
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6), 0 0 50px rgba(0, 188, 212, 0.5); /* Stronger glow on hover */
}

.card h3 {
    margin-top: 0;
    color: var(--link-color); /* Highlight card titles */
}
.card p {
    font-size: 1.05em;
    color: var(--secondary-text-color);
}
.card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(160, 160, 160, 0.2);
    color: var(--secondary-text-color);
    font-weight: 300;
}

.card ul li:last-child {
    border-bottom: none;
}
.card a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.card a:hover {
    text-decoration: underline;
    color: var(--hover-link-color);
}


.button {
    display: inline-block;
    background: var(--button-gradient); /* Glowing gradient */
    color: #fff;
    padding: 15px 30px; /* Larger padding */
    border-radius: 30px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4); /* Initial subtle glow */
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--button-gradient-hover); /* Hover gradient */
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-100%);
}

.button:hover::before {
    transform: translateX(0%);
}

.button:hover {
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.6), 0 0 50px rgba(138, 43, 226, 0.5); /* Stronger glow on hover */
    transform: translateY(-3px) scale(1.02);
}

.contact-form {
    max-width: 700px; /* Wider form */
    margin: 60px auto; /* More spacing */
    padding: 40px; /* Increased padding */
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--box-shadow-glow);
}

.contact-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--primary-text-color);
    font-size: 1.1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 24px); /* Account for padding */
    padding: 15px; /* Larger inputs */
    margin-bottom: 25px; /* More spacing */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    background-color: rgba(40, 40, 60, 0.7); /* Darker input background */
    color: var(--primary-text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px; /* Taller textarea */
}

.contact-form button {
    /* Use the same button styling */
    width: auto; /* Reset width for button */
    display: block; /* Make button full width if preferred, or adjust as needed */
    margin-top: 30px; /* Spacing from textarea */
}

footer {
    background-color: var(--header-footer-bg);
    color: var(--secondary-text-color);
    text-align: center;
    padding: 35px 20px; /* Increased padding */
    border-top: 1px solid var(--border-color);
    margin-top: 80px; /* More breathing room */
    font-size: 0.95em;
    box-shadow: var(--box-shadow-glow); /* Subtle glow */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

footer p {
    margin: 8px 0; /* More spacing for footer text */
    font-weight: 300;
}

footer a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 12px; /* More spacing for footer links */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: var(--hover-link-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        padding: 25px;
    }
    header .container {
        padding: 0 25px;
    }
    .hero h1 {
        font-size: 3.5em;
    }
    .hero p {
        font-size: 1.2em;
    }
    h2 {
        font-size: 2.8em;
    }
    h3 {
        font-size: 1.8em;
    }
    .card-grid {
        gap: 30px;
    }
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .navbar-logo {
        height: 38px; /* Scale down logo for tablets */
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0 15px 10px;
    }

    .hero {
        min-height: 60vh;
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero p {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2.2em;
        margin-bottom: 50px;
    }
    h2::after {
        width: 80px;
        bottom: -10px;
    }
    h3 {
        font-size: 1.6em;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card {
        padding: 30px;
    }

    .button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .contact-form {
        margin: 40px auto;
        padding: 30px;
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 12px;
    }
    footer {
        padding: 30px 15px;
        margin-top: 60px;
    }
    footer a {
        margin: 0 6px;
        display: inline-block;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    header .container {
        padding: 0 15px;
    }
    .navbar-logo {
        height: 32px; /* Scale down logo further for mobile */
    }
    .logo {
        font-size: 1.5em;
    }
    nav ul li {
        margin: 0 10px 10px;
    }
    .hero {
        padding: 60px 10px;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    h2::after {
        width: 60px;
    }
    h3 {
        font-size: 1.4em;
    }
    .card {
        padding: 25px;
    }
    .contact-form {
        margin: 30px auto;
        padding: 20px;
    }
    footer {
        margin-top: 40px;
    }
    footer p {
        font-size: 0.85em;
    }
}