/* Portfolio Page Specific Styles - Bright Theme Matching Index */

/* Color Palette */
:root {
    --primary-color: #2c2c2c;
    --secondary-color: #4a4a4a;
    --accent-color: #6b6b6b;
    --light-gray: #f8f8f8;
    --medium-gray: #e8e8e8;
    --dark-gray: #2c2c2c;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    --gradient-accent: linear-gradient(135deg, #6b6b6b 0%, #8a8a8a 100%);
}

/* Creative Navigation Styles */
.creative-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    transition: all 0.3s ease;
    height: 80px;
}

.creative-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.1);
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo Section */
.nav-logo-section {
    flex: 0 0 auto;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.logo-container:hover .logo-bg {
    opacity: 1;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    letter-spacing: 2px;
}

.nav-logo a {
    color: inherit;
    text-decoration: none !important;
}

.nav-logo a:hover {
    text-decoration: none !important;
}

.nav-logo a:focus {
    text-decoration: none !important;
    outline: none;
}

.nav-logo a:visited {
    text-decoration: none !important;
}

.nav-logo a:active {
    text-decoration: none !important;
}

/* Specific styling for the logo link */
.logo-container a {
    text-decoration: none !important;
    color: inherit;
}

.logo-container a:hover {
    text-decoration: none !important;
}

.logo-container a:focus {
    text-decoration: none !important;
    outline: none;
}

.logo-container a:visited {
    text-decoration: none !important;
}

.logo-container a:active {
    text-decoration: none !important;
}

.logo-container:hover .nav-logo {
    color: var(--white);
}

.logo-accent {
    position: absolute;
    top: 50%;
    right: -10px;
    width: 6px;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-accent {
    opacity: 1;
    transform: translateY(-50%) scale(1.5);
}

/* Center Navigation */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    border-radius: 50px;
}

.nav-link:hover::before {
    left: 0;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.nav-link:hover .nav-text {
    color: var(--white);
}

.nav-link.active .nav-text {
    color: var(--white);
}

.nav-link.active::before {
    left: 0;
}

.nav-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-indicator {
    width: 80%;
}

.nav-link.active .nav-indicator {
    width: 80%;
}

.nav-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--medium-gray), transparent);
    transform: translateY(-50%);
    z-index: -1;
}

/* Right Section */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 44, 44, 0.3);
}

.cta-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
    transform: rotate(45deg);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .line-1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .line-2 {
    opacity: 0;
}

.hamburger.active .line-3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Floating Elements */
.nav-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 50%;
    animation: floatDot 6s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.dot-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 0.8;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    max-width: 400px;
    width: 90%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-header h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
}

.mobile-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.mobile-link {
    position: relative;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.mobile-link:hover::before {
    left: 0;
}

.mobile-link-text {
    position: relative;
    z-index: 2;
}

.mobile-link.active .mobile-link-text {
    color: var(--white);
}

.mobile-link.active::before {
    left: 0;
}

.mobile-link-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.mobile-link:hover .mobile-link-indicator {
    width: 60%;
}

.mobile-link.active .mobile-link-indicator {
    width: 60%;
}

.mobile-menu-cta {
    margin-top: 40px;
}

.mobile-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-cta-button:hover::before {
    left: 100%;
}

.mobile-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 44, 44, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .creative-navbar {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .logo-container {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .logo-container {
        padding: 6px 12px;
    }
    
    .mobile-menu-content {
        width: 95%;
    }
    
    .mobile-link {
        font-size: 1.3rem;
    }
    
    .mobile-cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Page Hero */
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-hero .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(44, 44, 44, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(44, 44, 44, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.page-hero .hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.page-hero .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(44, 44, 44, 0.1), rgba(44, 44, 44, 0.05));
    animation: float 8s ease-in-out infinite;
}

.page-hero .shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.page-hero .shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.page-hero .shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

.page-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: heroContentFadeIn 1.2s ease-out;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero .hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-dark);
    letter-spacing: -2px;
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 120px 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.portfolio-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.02) 0%, rgba(44, 44, 44, 0.01) 100%);
    z-index: 1;
}

.portfolio-grid-section .container {
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    box-shadow: 0 5px 20px rgba(44, 44, 44, 0.05);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.15);
}

.portfolio-image {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--light-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(44, 44, 44, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(44, 44, 44, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.overlay-content p {
    color: var(--light-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.view-project {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-project:hover {
    background: var(--white);
    color: var(--text-dark);
    transform: scale(1.05);
}

.portfolio-info {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid var(--medium-gray);
}

.portfolio-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

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

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--white);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-hero {
        margin-top: 70px;
        min-height: 80vh;
    }
    
    .page-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .page-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .image-placeholder {
        font-size: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-hero .hero-title {
        font-size: 2rem;
    }
    
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .image-placeholder {
        font-size: 30px;
    }
    
    .overlay-content h3 {
        font-size: 1.2rem;
    }
    
    .project-tags {
        gap: 6px;
    }
    
    .tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Advanced Mobile Animations */
@media (max-width: 768px) {
    .portfolio-item {
        transform: translateY(20px);
        opacity: 0;
        animation: slideInUp 0.6s ease-out forwards;
    }
    
    .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
    .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
    .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
    .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
    .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
    .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes slideInUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    
    .portfolio-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .portfolio-item:active {
        transform: translateY(-5px) scale(1.02);
    }
    
    
    .view-project:active {
        transform: scale(1.05);
    }
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: auto;
}

[data-aos].aos-animate {
    pointer-events: auto;
}