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

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #12121e;
}
::-webkit-scrollbar-thumb {
    background: #00c6ff;
    border-radius: 5px;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    /* Enhanced gradient with a subtle animation feel */
    background: linear-gradient(135deg, #12121e, #1e1e2f, #2a2a40);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(20, 20, 30, 0.6); /* Slightly darker for better contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo */
header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    /* Gradient Text Effect */
    background: linear-gradient(90deg, #fff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav a {
    color: #e0e0e0;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00c6ff;
}

/* Underline Animation */
nav a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #00c6ff;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px;
    animation: fadeIn 1.2s ease-out;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero span {
    color: #00c6ff;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.4); /* Glowing text effect */
}

.hero p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 25px;
}

/* Glass Card styling (Applies to articles and cards) */
article, .card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Adds physical edge to glass */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Section spacing */
section {
    padding: 60px 8%;
}

/* Profile Image */
.profile {
    display: block;
    margin: 20px auto;
    width: 180px;
    border-radius: 50%;
    border: 4px solid transparent;
    /* Gradient Border Trick */
    background: linear-gradient(#1e1e2f, #1e1e2f) padding-box, 
                linear-gradient(45deg, #00c6ff, #ff007a) border-box; 
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
    transition: transform 0.4s ease;
}

.profile:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Figure */
figure {
    text-align: center;
    margin-top: 20px;
}

figure img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
    font-style: italic;
}

/* Projects Layout */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

/* Cards */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy hover effect */
    text-align: center;
    cursor: pointer;
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: filter 0.3s;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 198, 255, 0.2);
    border-color: rgba(0, 198, 255, 0.3);
}

.card:hover img {
    filter: brightness(1.1);
}

/* Links */
a {
    color: #00c6ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #aaa;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }

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

    nav a {
        margin-left: 0;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h2 {
        font-size: 32px;
    }
    
    section {
        padding: 40px 5%;
    }
}

/* Section spacing */
section {
    padding: 50px 8%;
}

/* Section titles */
section h2 {
    margin-bottom: 20px;
}

/* Image gallery */
.projects img {
    height: 300px;
    width: 300px;
    border-radius: 10px;
    transition: 0.3s;
}

/* Hover zoom effect */
.projects img:hover {
    transform: scale(1.05);
}

/* Make cards clickable */
.card {
    text-decoration: none;
    color: inherit;
}
/* Horizontal Scroll Gallery */
.scroll-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

/* Hide scrollbar (optional clean look) */
.scroll-gallery::-webkit-scrollbar {
    height: 8px;
}

.scroll-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Images inside scroll */
.scroll-gallery img {
    height: 200px;
    min-width: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

/* Hover effect */
.scroll-gallery img:hover {
    transform: scale(1.05);
}

/* Video Styling */
video {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}