/* 
 * Modern Portfolio Styles
 * Graphic Design Student - Minimal & Clean
 */

:root {
    /* Color Palette */
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #2c2c2c;
    /* Deep charcoal for elegance */
    --accent-light: #f4f4f4;
    --highlight: #333;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Typography Helpers */
.section-tag {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-secondary);
    /* Visual accent dot */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-primary);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger,
.mobile-menu {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Offset fixed header */
    padding-bottom: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text-content {
    z-index: 10;
}

.hero .subtitle {
    display: block;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 500;
}

.hero h1 {
    font-size: 85px; /* Slightly adjusted for layout */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero h2 {
    font-size: 26px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero p {
    font-size: 18px;
    max-width: 480px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

/* Hero Image & Decorations */
.hero-image-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 500px; /* Ensure space for image */
}

.hero-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align image to bottom for cut-off effect if needed */
}

/* Large Outline Circle */
.decorative-circle-outline {
    position: absolute;
    width: 550px;
    height: 550px;
    border: 1px solid #1a1a1a; /* Thin black outline */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Solid Fill Circle (Bottom Right) */
.decorative-circle-solid {
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: #f0f0f0; /* Light gray */
    border-radius: 50%;
    bottom: -150px;
    right: 0px;
    z-index: 3;
}

/* Profile Image */
.hero-profile-img {
    position: relative;
    z-index: 2;
    width: auto;
    max-height: 600px; /* Adjust based on image aspect ratio */
    max-width: 120%;   /* Allow slight overflow */
    object-fit: contain;
    /* Optional: Slight drop shadow if needed to separate from bg */
    /* filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); */
    bottom: 150px; /* Adjust to sit correctly */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 60px;
    }
    .decorative-circle-outline {
        width: 450px;
        height: 450px;
    }
    .decorative-circle-solid {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-content {
        min-height: 400px;
    }

    .hero-image-wrapper {
        width: 350px;
        height: 350px;
    }

    .decorative-circle-outline {
        width: 400px;
        height: 400px;
    }
    
    .decorative-circle-solid {
        width: 250px;
        height: 250px;
        bottom: -40px;
        right: -40px;
    }
    
    .hero-profile-img {
         max-height: 450px;
    }
}

/* About Section */
.section {
    padding: var(--section-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-secondary);
}

.skills-wrapper h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-item {
    background: var(--accent-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-fast);
}

.skill-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-color);
    transition: color var(--transition-fast);
}

.skill-item span {
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.skill-item:hover i,
.skill-item:hover span {
    color: var(--hover-color);
}

/* Portfolio Gallery Section */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active::after {
    width: 60%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 300px;
    /* Fixed height for uniform grid */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Contact Section */
.contact-section {
    padding-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-item i {
    font-size: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #fff;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
    transition-delay: 0.5s;
}

/* Responsive Media Queries */
/* Responsive Media Queries */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 70px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        text-align: center;
        justify-content: center;
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    .hero-content {
        margin: 0 auto;
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .cta-buttons {
        justify-content: center;
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-outline {
        margin-left: 0;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    /* Mobile Navigation */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger .line {
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Hamburger Animation when Active */
    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 1001;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
    }

    .mobile-menu.active {
        right: 0;
    }

    .close-menu-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: var(--text-primary);
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .close-menu-btn:hover {
        transform: rotate(90deg);
        color: var(--accent-color);
    }

    .mobile-nav-links {
        text-align: center;
    }

    .mobile-nav-links li {
        margin: 25px 0;
    }

    .mobile-nav-links a {
        font-size: 28px;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Adjust Gallery for Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 32px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .gallery-filter {
        gap: 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .contact-item {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        height: 200px;
    }

    .overlay-content h3 {
        font-size: 16px;
    }

    .overlay-content p {
        font-size: 12px;
    }
}