/* ===================================
   Global Styles & Variables
   =================================== */
:root {
    --primary-yellow: #FFD700;
    --primary-navy: #003366;
    --navy-dark: #002244;
    --yellow-light: #FFE44D;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 51, 102, 0.1);
    --yellow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Custom Cursor
   =================================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-yellow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
    display: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-yellow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    display: none;
}

@media (min-width: 1024px) {
    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    position: relative;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    position: relative;
}

.logo-text::before {
    content: 'HD';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-navy);
    z-index: -1;
    text-shadow: none;
    -webkit-text-fill-color: var(--primary-navy);
    transform: translate(2px, 2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-yellow);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-navy);
}

.nav-social a {
    color: var(--primary-navy);
    font-size: 1.5rem;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--primary-yellow);
    transform: translateY(-3px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-yellow);
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-navy);
    bottom: -50px;
    left: -50px;
    animation: float 15s infinite ease-in-out reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-yellow);
    top: 50%;
    left: 10%;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-name {
    font-size: 4rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-titles {
    font-size: 2rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    min-height: 60px;
    font-weight: 700;
}

.typing-text {
    border-right: 3px solid var(--primary-yellow);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-navy);
    box-shadow: var(--yellow-glow);
}

.btn-primary:hover {
    background: var(--primary-navy);
    color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-navy);
    border: 3px solid var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.stat h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
}

.profile-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.2);
}

.profile-img-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 1.5rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-yellow);
    box-shadow: var(--yellow-glow);
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.profile-badge i {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.profile-info {
    text-align: center;
}

.profile-info h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: #666;
    margin-bottom: 1rem;
}

.profile-location {
    color: var(--primary-yellow);
    font-weight: 600;
}

.profile-location i {
    margin-right: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-navy);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-navy);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.divider {
    width: 100px;
    height: 4px;
    background: var(--primary-yellow);
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, transparent 100%);
    display: flex;
    justify-content: space-around;
}

.about-box {
    text-align: center;
    color: white;
}

.about-box i {
    font-size: 2rem;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.about-box h4 {
    font-size: 0.9rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.about-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.about-goal {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-yellow);
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}

.about-goal i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    flex-shrink: 0;
}

.about-goal h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.about-interests h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.interest-tags span {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: var(--primary-navy);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.interest-tags span:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

.interest-tags span i {
    margin-right: 0.5rem;
}

/* ===================================
   Skills Section
   =================================== */
.skills {
    background: white;
}

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

.skill-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-yellow);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-yellow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--primary-navy);
    transform: scale(1.1) rotate(5deg);
}

.skill-icon i {
    font-size: 2.5rem;
    color: var(--primary-navy);
}

.skill-card:hover .skill-icon i {
    color: var(--primary-yellow);
}

.skill-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.skill-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skill-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tech span {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-navy);
    font-weight: 600;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    background: var(--bg-light);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-navy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item.hide {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.view-btn {
    background: var(--primary-yellow);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-navy);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.gallery-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.gallery-note i {
    color: var(--primary-yellow);
    margin-right: 0.5rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--primary-navy);
}

.contact-details h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #666;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-yellow);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-navy);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group i {
    position: absolute;
    left: 1.5rem;
    top: 1.25rem;
    color: var(--primary-navy);
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: var(--yellow-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: white;
    transform: translateY(-5px);
}

.footer-social a i {
    color: var(--primary-navy);
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    border: none;
    border-radius: 50%;
    color: var(--primary-navy);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--yellow-glow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-navy);
    color: var(--primary-yellow);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu,
    .nav-social {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-titles {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .skills-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .profile-img-wrapper {
        width: 250px;
        height: 250px;
    }
}