/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #00ffff 0%, #ff0080 50%, #ff6b35 100%);
    --animation-speed: 1;
    --focus-visible: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 70%, #000000 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Layered Background - Stars and Ocean */
.star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #000000 0%, #0a0a0a 50%, #000000 100%);
}

/* Starry Sky (Top 60% of screen) */
.star-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: 
        radial-gradient(3px 3px at 50px 50px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(2px 2px at 150px 150px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(3px 3px at 250px 100px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(2px 2px at 350px 200px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(3px 3px at 450px 50px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(2px 2px at 550px 150px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(3px 3px at 650px 100px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(2px 2px at 750px 200px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(3px 3px at 850px 50px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(2px 2px at 950px 150px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(3px 3px at 1050px 100px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(2px 2px at 1150px 200px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(3px 3px at 1250px 50px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(2px 2px at 1350px 150px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(3px 3px at 1450px 100px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(2px 2px at 1550px 200px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(3px 3px at 1650px 50px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(2px 2px at 1750px 150px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(3px 3px at 1850px 100px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(2px 2px at 1950px 200px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(2px 2px at 100px 300px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(3px 3px at 300px 350px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(2px 2px at 500px 400px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(3px 3px at 700px 450px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(2px 2px at 900px 500px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(3px 3px at 1100px 550px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(2px 2px at 1300px 600px, rgba(247, 245, 238, 0.9), transparent),
        radial-gradient(3px 3px at 1500px 650px, rgba(247, 245, 238, 1), transparent),
        radial-gradient(2px 2px at 1700px 700px, rgba(247, 245, 238, 0.85), transparent),
        radial-gradient(3px 3px at 1900px 750px, rgba(247, 245, 238, 0.95), transparent),
        radial-gradient(1px 1px at 200px 250px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 400px 300px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 600px 350px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 800px 400px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 1000px 450px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 1200px 500px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 1400px 550px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 1600px 600px, rgba(247, 245, 238, 0.8), transparent),
        radial-gradient(1px 1px at 1800px 650px, rgba(247, 245, 238, 0.8), transparent);
    background-repeat: repeat;
    background-size: 2000px 1000px;
    animation: subtle-twinkle 8s ease-in-out infinite;
}

/* Ocean Reflection (Bottom 40% of screen) */
.star-background::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: 
        linear-gradient(180deg, 
            rgba(0, 0, 0, 0) 0%, 
            rgba(0, 0, 0, 0.3) 40%, 
            rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(0deg,
            rgba(247, 245, 238, 0.15) 0%,
            rgba(247, 245, 238, 0.05) 25%,
            rgba(247, 245, 238, 0.2) 50%,
            rgba(247, 245, 238, 0.05) 75%,
            rgba(247, 245, 238, 0.15) 100%),
        linear-gradient(0deg,
            rgba(247, 245, 238, 0.1) 0%,
            rgba(247, 245, 238, 0.03) 50%,
            rgba(247, 245, 238, 0.1) 100%);
    background-size: 100% 100%, 100% 80px, 100% 120px;
    animation: ocean-waves 12s ease-in-out infinite;
    mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 90%);
    -webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,1) 90%);
}

@keyframes subtle-twinkle {
    0%, 100% { 
        opacity: 0.9;
    }
    50% { 
        opacity: 1;
    }
}

@keyframes ocean-waves {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        background-position: 0% 0%, 0% 20px, 0% 40px;
    }
    50% {
        background-position: 0% 0%, 0% 40px, 0% 80px;
    }
    75% {
        background-position: 0% 0%, 0% 60px, 0% 120px;
    }
}



/* Big Centered Logo */
.big-centered-logo {
    text-align: center;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
}



.css-logo-circle {
    width: 140px;
    height: 140px;
    background: #f7f5ee;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: css-logo-pulse 6s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(247, 245, 238, 0.6);
}

.css-logo-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: #f7f5ee;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(15px);
    animation: css-logo-aura 4s ease-in-out infinite;
}

@keyframes css-logo-aura {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    50% { 
        opacity: 0.4;
        transform: scale(1.1);
    }
}



@keyframes css-logo-pulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(247, 245, 238, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(247, 245, 238, 0.8);
        transform: scale(1.05);
    }
}

.big-logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: #f7f5ee;
    animation: big-text-glow 4s ease-in-out infinite;
    position: relative;
    text-shadow: 0 0 8px rgba(247, 245, 238, 0.4);
    filter: brightness(1.1);
}

.big-logo-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: #f7f5ee;
    opacity: 0;
    animation: text-shift 3s ease-in-out infinite;
    filter: brightness(1.4);
}

@keyframes text-shift {
    0%, 100% { 
        opacity: 0;
        transform: translateX(0);
    }
    50% { 
        opacity: 0.7;
        transform: translateX(1px);
    }
}

@keyframes big-text-glow {
    0%, 100% { 
        filter: brightness(1.1) drop-shadow(0 0 6px rgba(247, 245, 238, 0.3));
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(247, 245, 238, 0.4));
    }
}

/* Main Content */
.main-content {
    text-align: center;
    max-width: 80%;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
}





.main-subtitle {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    animation: subtitle-shimmer 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.main-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: line-pulse 2s ease-in-out infinite;
}

@keyframes line-pulse {
    0%, 100% { 
        opacity: 0.6;
        width: 100px;
    }
    50% { 
        opacity: 1;
        width: 150px;
    }
}

@keyframes subtitle-shimmer {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    }
}

.main-description {
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
    animation: description-fade 6s ease-in-out infinite;
    backdrop-filter: blur(0.5px);
    transform: translateZ(0);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(247, 245, 238, 0.3);
}

@keyframes description-fade {
    0%, 100% { 
        opacity: 0.8;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-2px);
    }
}

.about-section {
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: about-fade 2s ease-out 1.5s forwards;
}

.about-header {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.7;
    position: relative;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
    opacity: 0.5;
}

.projects-section {
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: about-fade 2s ease-out 2s forwards;
}

.projects-header {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.7;
    position: relative;
}

.projects-header::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
    opacity: 0.5;
}

.project-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.project-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.9;
    filter: brightness(1.1);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.project-link:hover {
    text-decoration: none;
    color: inherit;
}

.project-link:focus {
    outline: none;
}

.project-link:focus .project-item {
    outline: 2px solid var(--text-secondary);
    outline-offset: 2px;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: center;
}

.about-text:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-primary);
    font-weight: 500;
}

@keyframes about-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.cta-primary, .cta-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

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

.cta-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}



/* Contact Info */
.contact-info {
    text-align: center;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-height: 60px;
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.contact-info p {
    color: #f7f5ee;
    font-size: 1rem;
    margin: 0;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-info p:hover,
.contact-info p:focus {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(247, 245, 238, 0.5);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus {
    text-decoration: underline;
    outline: 2px solid #f7f5ee;
    outline-offset: 2px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .big-centered-logo {
        gap: 15px;
        text-align: center;
        width: 100%;
        padding: 1rem;
    }
    
    .css-logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .big-logo-text {
        font-size: 2rem;
    }
    
    .main-content {
        max-width: 85%;
        padding: 0 20px;
    }
    
    .main-subtitle {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
        .main-description {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .about-section {
        margin-top: 1.5rem;
        max-width: 600px;
    }
    
    .about-header {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .projects-section {
        margin-top: 2.5rem;
        max-width: 600px;
    }
    
    .projects-header {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .project-item {
        padding: 1.5rem;
    }
    
    .project-logo {
        width: 50px;
        height: 50px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }

    .about-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .contact-info {
        max-width: 90%;
        padding: 2rem 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .big-centered-logo {
        gap: 12px;
        text-align: center;
        width: 100%;
        padding: 0.8rem;
    }
    
    .css-logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .big-logo-text {
        font-size: 1.6rem;
    }
    
    .main-content {
        max-width: 90%;
        padding: 0 15px;
    }
    
    .main-subtitle {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
        .main-description {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .about-section {
        margin-top: 1.2rem;
        max-width: 500px;
    }
    
    .about-header {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .projects-section {
        margin-top: 2rem;
        max-width: 500px;
    }
    
    .projects-header {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .project-item {
        padding: 1.2rem;
    }
    
    .project-logo {
        width: 45px;
        height: 45px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }

    .about-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .about-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .contact-info {
        max-width: 95%;
        padding: 2rem 1rem;
    }
    
    .contact-info p {
        font-size: 0.8rem;
        margin: 0;
    }
}

@media (max-width: 360px) {
    .big-centered-logo {
        gap: 10px;
        text-align: center;
        width: 100%;
        padding: 0.5rem;
    }
    
    .css-logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .big-logo-text {
        font-size: 1.4rem;
    }
    
    .main-content {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .main-subtitle {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
        .main-description {
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .about-section {
        margin-top: 0.8rem;
        max-width: 400px;
    }
    
    .about-header {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .projects-section {
        margin-top: 1.5rem;
        max-width: 400px;
    }
    
    .projects-header {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .project-logo {
        width: 40px;
        height: 40px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }

    .about-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .about-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .contact-info {
        max-width: 98%;
        padding: 1.5rem 1rem;
    }
    
    .contact-info p {
        font-size: 0.7rem;
        margin: 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
} 