* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A1928 0%, #1B3A4B 100%);
    color: #E8EDF2;
    scroll-behavior: smooth;
    line-height: 1.5;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1E2A3A;
}

::-webkit-scrollbar-thumb {
    background: #FFD166;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC107;
}

:root {
    --ph-yellow: #FFD166;
    --ph-yellow-dark: #FFC107;
    --ph-blue: #2A6F8F;
    --ph-blue-dark: #1A4A62;
    --ph-white: #F8F9FA;
    --ph-offwhite: #F0F4F8;
    --ph-dark: #1B2A3A;
    --ph-card: #1E3A4D;
    --ph-accent: #3A9BD5;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-dark: #1E293B;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HOME SECTION ONLY - Universe Background */
#home {
    position: relative;
    background: transparent;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/universe.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* All other sections have dark blue gradient */
#about, #skills, #projects, #photography, #movies, #contact {
    background: linear-gradient(135deg, #0F2A3F 0%, #1B3A4B 50%, #0F2A3F 100%);
    position: relative;
}

/* Header - Glassmorphism with curved edges and notch effect */
header {
    background: rgba(15, 42, 63, 0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 209, 102, 0.3);
    position: sticky;
    top: 15px;
    z-index: 100;
    transition: all 0.3s ease;
    width: 90%;
    margin: 0 auto;
    border-radius: 60px;
    left: 0;
    right: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

header.scrolled {
    background: rgba(10, 25, 40, 0.85);
    backdrop-filter: blur(12px);
    top: 8px;
    width: 95%;
    border-bottom-color: rgba(255, 209, 102, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF, #FFD166, #FFC107);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

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

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: 0.3s;
    font-size: 0.9rem;
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD166, #FFC107);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #FFD166;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #FFFFFF;
}

/* Buttons - Yellow accents */
.btn-outline {
    border: 2px solid #FFD166;
    background: transparent;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #FFD166;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FFD166, #FFC107);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover {
    color: #0A1928;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 209, 102, 0.4);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD166, #FFC107, #FFFFFF);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.5);
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 85vh;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    background: rgba(255, 209, 102, 0.15);
    color: #FFD166;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(255, 209, 102, 0.4);
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF, #FFD166, #FFE4A0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFD166;
    margin-bottom: 1.2rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 550px;
    line-height: 1.7;
}

/* Hero Avatar - RECTANGLE shape */
.hero-avatar {
    flex: 0.8;
    text-align: center;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.avatar-image {
    width: 260px;
    height: 320px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid #FFD166;
    box-shadow: 0 20px 40px rgba(255, 209, 102, 0.3);
    background: #1E3A4D;
    transition: all 0.3s ease;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-avatar:hover .avatar-image {
    transform: scale(1.03);
    border-color: #FFC107;
    box-shadow: 0 25px 50px rgba(255, 193, 7, 0.4);
}

.avatar-name {
    font-weight: 800;
    margin-top: 1.2rem;
    font-size: 1.3rem;
    color: #FFFFFF;
}

.avatar-title {
    font-size: 0.9rem;
    color: #FFD166;
    font-weight: 600;
}

/* About Section - More white elements */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.about-text strong {
    color: #FFD166;
    font-weight: 700;
}

.interests-title, .workflow-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.interest-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.interest-badge i {
    color: #FFD166;
}

.interest-badge:hover {
    border-color: #FFD166;
    transform: translateY(-3px);
    background: rgba(255, 209, 102, 0.2);
    color: #FFFFFF;
}

.workflow-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================== */
/* SKILLS SECTION - INDIVIDUAL BOX CARDS (Fixed & Improved) */
/* ==================== */
#skills {
    position: relative;
    padding: 5rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: #FFD166;
    box-shadow: 0 15px 35px rgba(255, 209, 102, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.skill-icon {
    font-size: 2.5rem;
    color: #FFD166;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: #FFD166;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-left: 3px solid #FFD166;
    padding-left: 0.8rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.skill-card li:last-child {
    border-bottom: none;
}

.skill-card li i {
    color: #FFD166;
    width: 1.8rem;
    font-size: 1.1rem;
}

/* Projects Table */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.projects-table th,
.projects-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.projects-table th {
    background: rgba(255, 209, 102, 0.15);
    color: #FFD166;
    font-weight: 700;
    font-size: 1rem;
}

.projects-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #A5D6A7;
}

.status-inprogress {
    background: rgba(255, 209, 102, 0.2);
    color: #FFD166;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFE082;
}

/* Photography Section */
.photo-category {
    margin-bottom: 3rem;
    width: 100%;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #FFD166;
    width: fit-content;
}

.category-header i {
    font-size: 1.6rem;
    color: #FFD166;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
}

.photo-card {
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    overflow: hidden;
    border: 2px solid rgba(255, 209, 102, 0.3);
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 209, 102, 0.3);
    border-color: #FFD166;
}

.photo-img-area {
    width: 100%;
    height: 100%;
}

.photo-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-img-area img {
    transform: scale(1.08);
}

/* Carousel Animations */
.carousel-left .carousel-track {
    animation: scrollLeft 22s linear infinite;
}

.carousel-right .carousel-track {
    animation: scrollRight 22s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused !important;
}

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

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

/* Movies Section */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.movie-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 209, 102, 0.25);
    cursor: pointer;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: #FFD166;
    box-shadow: 0 20px 35px rgba(255, 209, 102, 0.25);
}

.movie-img-area {
    width: 100%;
    height: 360px;
}

.movie-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.movie-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #FFFFFF;
    background: linear-gradient(to top, rgba(27, 42, 58, 0.95) 0%, rgba(27, 42, 58, 0.7) 60%, transparent 100%);
    text-align: center;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-text {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.contact-details p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.contact-details i {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 209, 102, 0.15);
    border-radius: 50%;
    color: #FFD166;
    font-size: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.contact-details a {
    color: #FFD166;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.contact-details a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Form Styles - More white */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: #FFD166;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.8rem;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD166;
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    background: linear-gradient(135deg, #FFD166, #FFC107);
    color: #0A1928;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 209, 102, 0.4);
    filter: brightness(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 40, 0.98);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(15px);
}

.modal-content {
    max-width: 85%;
    max-height: 85%;
    background: #1E3A4D;
    border-radius: 1.5rem;
    padding: 1rem;
    text-align: center;
    border: 2px solid #FFD166;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 1rem;
    object-fit: contain;
}

.modal-caption {
    margin-top: 0.8rem;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 1rem;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #FFD166;
    transform: rotate(90deg);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #071724, #0A1928);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid #FFD166;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: #FFD166;
    transform: translateY(-3px);
}

footer p {
    font-size: 0.8rem;
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #FFD166;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .avatar-image { width: 200px; height: 250px; }
    header { width: 95%; top: 10px; }
    nav { padding: 0.5rem 1.2rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.2rem; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(10, 25, 40, 0.95);
        backdrop-filter: blur(12px);
        padding: 1rem 0;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        text-align: center;
        border-radius: 0 0 30px 30px;
        border-top: 1px solid rgba(255, 209, 102, 0.3);
    }
    .nav-links.active { display: flex; }
    .hero { flex-direction: column-reverse; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-desc { font-size: 0.95rem; margin-left: auto; margin-right: auto; }
    .section-title { font-size: 1.8rem; }
    .skills-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .movies-grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 320px; margin-left: auto; margin-right: auto; }
    .movie-img-area { height: 280px; }
    .contact-wrapper { flex-direction: column; padding: 1.5rem; }
    .photo-card { flex: 0 0 160px; width: 160px; height: 160px; }
    .category-header h3 { font-size: 1.2rem; }
    .projects-table th, .projects-table td { padding: 0.7rem; font-size: 0.8rem; }
    header { width: 98%; border-radius: 40px; }
}

@media (max-width: 480px) {
    section { padding: 3rem 0; }
    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .btn-outline { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
    .avatar-image { width: 160px; height: 200px; }
    .photo-card { flex: 0 0 130px; width: 130px; height: 130px; }
    .skill-card { padding: 1.2rem; }
    .skill-card h3 { font-size: 1.1rem; }
    .skill-card li { font-size: 0.85rem; }
}