:root {
    --primary-blue: #007bff;
    /* Standard Blue */
    --hover-blue: #0056b3;
    --text-black: #000000;
    --bg-gradient-1: #e0f7fa;
    /* Light Cyan */
    --bg-gradient-2: #80deea;
    /* Cyan */
    --bg-gradient-3: #4dd0e1;
    /* Darker Cyan */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0faff 0%, #b2ebf2 100%);
    color: var(--text-black);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation Globes */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.globe-1 {
    background: #00c6ff;
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: moveGlobe1 20s infinite alternate;
}

.globe-2 {
    background: #0072ff;
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation: moveGlobe2 25s infinite alternate;
}

.globe-3 {
    background: #00ffff;
    width: 250px;
    height: 250px;
    top: 40%;
    left: 40%;
    animation: moveGlobe3 30s infinite alternate;
    opacity: 0.4;
}

@keyframes moveGlobe1 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes moveGlobe2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100px, -100px);
    }
}

@keyframes moveGlobe3 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, -50px);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--text-black);
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.glass-input {
    background: rgba(255, 255, 255, 0.6);
    /* More visible inputs */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px;
    width: 100%;
    outline: none;
    font-family: inherit;
    color: var(--text-black);
    font-size: 1rem;
    transition: 0.3s;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: var(--primary-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    /* Reduced from 100vh to reduce gap */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    /* offset for fixed nav removed */
    text-align: center;
}

.hero-card {
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 2rem;
}

/* Sections General */
.section {
    padding: 3rem 10%;
    /* Reduced top/bottom padding */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title-wrapper {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-black);
}

/* About Section */
.content-card {
    text-align: center;
}

.skills {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info .btn-sm {
    margin-top: 1rem;
}

/* Contact Section */
.contact-card {
    max-width: 700px;
    /* Wider card */
    margin: 0 auto;
    padding: 3rem;
    /* More breathing room */
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #444;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 5%;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .glass-card {
        padding: 1rem;
    }

    .section {
        padding: 2rem 1rem;
        /* Much tighter spacing for mobile */
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    transition: transform 0.3s ease-in-out, opacity 0.3s;
    opacity: 0;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 5px solid #28a745;
    color: #28a745;
}

.toast.error {
    border-left: 5px solid #dc3545;
    color: #dc3545;
}

@media screen and (max-width: 480px) {
    .toast {
        bottom: 80px;
        /* Move up to avoid bottom bar/keyboard interactions */
        width: 90%;
        text-align: center;
    }
}