/* Import modern and tech-inspired fonts */
@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Exo+2:wght@300;400;700&display=swap');

:root {
    /* Define a Space Tech color palette with CSS variables */
    --void-dark: #0a0a1a; /* Deepest dark, like space */
    --star-dust: #151525; /* Slightly lighter for backgrounds, a faint cosmic dust */
    --console-glass: rgba(25, 25, 45, 0.7); /* Slightly transparent for console elements */
    --text-primary: #e0e0e0; /* Main light text */
    --text-secondary: #aaaaaa; /* Muted text for descriptions */
    --accent-blue-neon: #00e5ff; /* Bright blue for primary highlights/holograms */
    --accent-green-data: #20c20e; /* Green for success/data readouts */
    --accent-purple-nebula: #8b008b; /* Deep purple for secondary highlights/nebulae */
    --border-subtle: rgba(255, 255, 255, 0.08); /* Very faint white for subtle outlines */
    --border-active: rgba(0, 229, 255, 0.4); /* Blue neon for active borders */
    --glow-soft: rgba(0, 229, 255, 0.2);
    --glow-strong: rgba(0, 229, 255, 0.6);
    --shadow-deep: rgba(0, 0, 0, 0.7);
}

body {
    background-color: var(--void-dark);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif; /* Modern, clean, slightly rounded and techy */
    line-height: 1.7; /* Slightly more space for readability */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Optional: Starfield background (more complex, consider external library for parallax) */
    background-image:
        radial-gradient(ellipse at bottom, var(--star-dust) 0%, transparent 70%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="%230A0A1A" /><circle cx="10" cy="10" r="1" fill="white" opacity="0.8" /><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.6" /><circle cx="80" cy="60" r="1.2" fill="white" opacity="0.9" /></svg>'); /* Tiny, scattered white dots for stars */
    background-size: cover, 100px 100px; /* Cover for radial gradient, tile for stars */
    background-repeat: no-repeat, repeat;
    background-attachment: fixed; /* Keep stars fixed when scrolling */
}

/* More intricate background patterns */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body::before { /* Subtle grid pattern */
    background-image:
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

body::after { /* Faint nebula/gradient effect */
    background: radial-gradient(circle at 10% 20%, rgba(139, 0, 139, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
    opacity: 0.3;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Aldrich', sans-serif; /* Industrial, robust, sci-fi font */
    color: var(--accent-blue-neon);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), /* Stronger blue glow */
                 0 0 20px rgba(139, 0, 139, 0.4); /* Subtle purple undertone for nebula effect */
    margin-bottom: 1.8rem; /* More space below headings */
    text-transform: uppercase; /* Common in tech UIs */
    letter-spacing: 2px;
}

.container {
    max-width: 1000px; /* Slightly wider for a more expansive feel */
    margin: 60px auto; /* Increased top/bottom margin */
    padding: 30px; /* More internal padding */
    box-sizing: border-box;
    position: relative; /* For potential pseudo-elements */
    z-index: 1; /* Ensure content is above background effects */
}

.card {
    background-color: var(--console-glass); /* Semi-transparent console background */
    backdrop-filter: blur(8px); /* Glassmorphism effect */
    border: 1px solid var(--border-active); /* Clear border for definition */
    border-radius: 15px; /* Softer rounding, more like a physical panel */
    box-shadow: 0 8px 30px var(--shadow-deep), /* Deep shadow for lifting effect */
                0 0 25px var(--glow-soft); /* Subtle initial glow */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    margin-bottom: 40px; /* More space between cards */
    position: relative; /* For pseudo-element effects */
}

/* Subtle border animation/pulse for cards */
.card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-blue-neon), var(--accent-purple-nebula), var(--accent-blue-neon));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 17px; /* Matches card radius + border width */
    opacity: 0.1;
    filter: blur(5px);
    transition: opacity 0.5s ease-in-out;
    animation: borderPulse 8s infinite alternate ease-in-out;
}

.card:hover {
    border-color: var(--accent-blue-neon);
    box-shadow: 0 12px 40px var(--shadow-deep),
                0 0 40px var(--glow-strong); /* Stronger glow on hover */
    transform: translateY(-8px) scale(1.02); /* More significant lift and scale */
}

.card:hover::before {
    opacity: 0.4; /* Make the glowing border more visible on hover */
}


.card-header {
    background-color: rgba(var(--star-dust), 0.8); /* Slightly less transparent header */
    color: #fff;
    border-bottom: 2px solid var(--accent-blue-neon); /* Stronger border */
    padding: 1.5rem 2rem; /* More generous padding */
    border-radius: 14px 14px 0 0 !important; /* Matches card radius */
    font-family: 'Aldrich', sans-serif;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    font-size: 1.5rem; /* Larger, more impactful header */
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

/* Subtle scanline effect on header */
.card-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-green-data), transparent);
    animation: scanline 4s infinite linear;
    opacity: 0.7;
}

/* Centering the Form within its parent */
form {
    max-width: 600px; /* Adjusted max-width for forms */
    margin: 40px auto; /* Increased margin */
    padding: 35px; /* More internal padding */
    background-color: var(--console-glass); /* Match card glassmorphism */
    backdrop-filter: blur(10px); /* Stronger blur for form */
    border-radius: 15px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 6px 25px var(--shadow-deep),
                0 0 18px var(--glow-soft);
    position: relative;
}

/* Small, subtle corner highlights on form */
form::before, form::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-green-data);
    opacity: 0.4;
}
form::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
form::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.form-group {
    margin-bottom: 1.5rem; /* More space between form groups */
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-secondary); /* Slightly muted label color */
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
}

.form-control {
    background-color: rgba(var(--star-dust), 0.6); /* Slightly transparent input fields */
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 10px; /* More rounded inputs */
    padding: 1rem 1.4rem; /* More padding */
    width: calc(100% - 2.8rem); /* Adjust width for padding */
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    font-size: 1.05rem; /* Slightly larger text in inputs */
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-control:focus {
    background-color: rgba(var(--void-dark), 0.8); /* Darken significantly on focus */
    border-color: var(--accent-blue-neon);
    box-shadow: 0 0 0 0.3rem rgba(0, 229, 255, 0.2), /* Larger, softer focus glow */
                0 0 15px var(--glow-strong); /* Stronger immediate glow */
    color: #fff;
    outline: none;
}

.btn {
    background-image: linear-gradient(to right, var(--accent-blue-neon) 0%, var(--accent-purple-nebula) 50%, var(--accent-blue-neon) 100%); /* More dynamic gradient */
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    border-radius: 10px; /* Match input radius */
    padding: 1rem 2.5rem; /* Larger buttons */
    font-family: 'Aldrich', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px; /* More prominent letter spacing */
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4); /* Deeper, more distinct shadow */
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    display: inline-block; /* For better margin/padding control */
    margin-top: 20px; /* Space above button */
}

.btn:hover {
    background-position: right center; /* Animate gradient */
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.7), 0 0 40px rgba(139, 0, 139, 0.7); /* Double glow intensifies */
    transform: translateY(-5px); /* More pronounced lift */
}

.btn:active {
    background-color: var(--accent-blue-neon);
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
}

code {
    background-color: rgba(var(--star-dust), 0.7); /* Match console glass */
    color: var(--accent-green-data); /* Green for data/code snippets */
    padding: 5px 10px; /* More padding */
    border-radius: 7px; /* More rounded */
    font-family: 'Fira Code', monospace;
    border: 1px solid rgba(32, 194, 14, 0.3); /* Green border */
    font-size: 0.95em;
    text-shadow: 0 0 3px rgba(32, 194, 14, 0.5); /* Subtle code glow */
}

.table {
    color: var(--text-primary);
    width: 100%;
    border-collapse: separate; /* Allows for border-spacing */
    border-spacing: 0 10px; /* Space between rows */
    margin-top: 30px;
    background-color: rgba(var(--console-glass), 0.5); /* Subtle table background */
    border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners apply to content */
    box-shadow: 0 4px 15px var(--shadow-deep);
}

.table th, .table td {
    padding: 1.2rem 1.5rem; /* More padding for table cells */
    border: none; /* Remove default borders */
    background-color: rgba(var(--star-dust), 0.6); /* Background for individual cells */
    transition: background-color 0.3s ease-in-out;
}

.table tbody tr:hover td {
    background-color: rgba(var(--star-dust), 0.8); /* Slightly darker on row hover */
}

.table thead th {
    color: var(--accent-blue-neon);
    background-color: rgba(var(--void-dark), 0.9); /* Darker header row */
    border-bottom: 2px solid var(--accent-blue-neon);
    font-family: 'Aldrich', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: sticky; /* Make header sticky if table scrolls */
    top: 0;
    z-index: 10;
}

/* Rounded corners for table header */
.table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}
.table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}
.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}
.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}


/* Scrollbar styling for a modern tech feel */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-blue-neon), var(--accent-purple-nebula));
    border-radius: 10px;
    border: 1px solid var(--star-dust);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-blue-neon), var(--accent-blue-neon));
}

/* Keyframe Animations */
@keyframes borderPulse {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 30px auto;
        padding: 15px;
        max-width: 100%; /* Allow container to be full width on small screens */
    }

    .card {
        margin-bottom: 25px;
        border-radius: 10px;
    }
    .card::before { border-radius: 12px; }


    .card-header {
        padding: 1rem 1.2rem;
        font-size: 1.2rem;
        border-radius: 9px 9px 0 0 !important;
    }

    form {
        margin: 25px auto;
        padding: 25px;
        border-radius: 10px;
    }
    form::before, form::after {
        width: 15px;
        height: 15px;
    }


    .form-control {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        width: calc(100% - 2rem);
    }

    .btn {
        padding: 0.85rem 1.8rem;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .table th, .table td {
        padding: 1rem 0.8rem;
        font-size: 0.9em;
    }
    .table {
        border-spacing: 0 8px;
    }
}

@media print {
    /* ... (Existing print styles) ... */
    .card, form, .table {
        background-color: #fff !important;
        box-shadow: none !important;
        filter: none !important;
        border: 1px solid #ccc !important;
    }
    .card-header, .table thead th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        text-shadow: none !important;
        border-bottom: 1px solid #aaa !important;
    }
    code {
        background-color: #eee !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
        text-shadow: none !important;
    }
    .btn, .navbar, body::before, body::after { /* Also hide the new ::after for the nebula */
        display: none !important;
    }
    body {
        background-color: #fff;
        color: #000;
        text-shadow: none;
    }
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        text-shadow: none;
    }
}

/* Social Media Section */
.social-media-section {
    text-align: center;
    margin-top: 60px; /* Space above social media */
    padding: 30px 0;
    background-color: var(--star-dust); /* A subtle background for the section */
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3); /* Inner shadow for depth */
}

.social-media-section h2 {
    color: var(--accent-blue-neon);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px; /* Space between icons */
    flex-wrap: wrap; /* Allow icons to wrap on smaller screens */
}

.social-icon {
    display: flex; /* Use flex to center the icon inside the circle */
    justify-content: center;
    align-items: center;
    width: 60px; /* Size of the icon circle */
    height: 60px;
    background-color: var(--console-glass); /* Glassy background */
    border: 1px solid var(--border-subtle);
    border-radius: 50%; /* Make them perfectly round */
    color: var(--text-primary); /* Default icon color */
    font-size: 1.8rem; /* Size of the Font Awesome icon */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), /* Deep shadow */
                0 0 10px rgba(0, 229, 255, 0.2); /* Subtle glow */
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden; /* For glow effect */
}

.social-icon:hover {
    background-color: var(--accent-blue-neon); /* Accent color on hover */
    color: var(--void-dark); /* Dark text on hover */
    transform: translateY(-5px) scale(1.1); /* Lift and grow effect */
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.7), /* Stronger glow on hover */
                0 0 15px rgba(0, 229, 255, 0.9); /* Even stronger central glow */
}

/* Specific icon colors (optional, for branding) */
.social-icon.twitter:hover { background-color: #1DA1F2; color: #fff; }
.social-icon.linkedin:hover { background-color: #0A66C2; color: #fff; }
.social-icon.github:hover { background-color: #6e5494; color: #fff; } /* GitHub purple/dark */
.social-icon.discord:hover { background-color: #7289DA; color: #fff; }
.social-icon.email:hover { background-color: var(--accent-green-data); color: #fff; }

/* Optional: Site Footer */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background-color: var(--void-dark);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
}
