@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gloock&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: url('assets/aurora-background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #ffffff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    padding: 2rem 2rem;
    z-index: 1000;
}

.nav-logo {
    cursor: pointer;
    margin-left: -1rem;
    margin-top: -3.5rem;
}

.nav-logo a {
    display: block;
    text-decoration: none;
}

.nav-logo a:hover {
    opacity: 0.9;
}

.nav-logo img {
    height: 150px;
    width: auto;
    transition: transform 0.2s ease;
}

.nav-logo img:hover {
    transform: scale(0.98);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: -0.02em;
    font-weight: 450;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links .nav-cta {
    color: #ffffff;
    opacity: 1;
    font-weight: 500;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.iphone-container {
    position: relative;
    width: 406px;
    height: 880px;
    margin-top: 40px;
}

.iphone-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 55px;
}

.iphone-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-frame-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 55px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iphone-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 60px;
    pointer-events: none;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.dynamic-island {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 139px;
    height: 41px;
    background: #000000;
    border-radius: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.island-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 12px;
}

.island-camera {
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 0;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.time {
    font-size: 17.6px;
    font-weight: 500;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: -10px;
}

.signal {
    width: 26px;
    height: 16px;
    object-fit: contain;
    opacity: 0.9;
    margin-right:-3px;
    margin-left: 3px;
}

.wifi {
    width: 22px;
    height: 16px;
    object-fit: contain;
    opacity: 0.9;
    margin-left: 0px;
}

.battery {
    width: 20px;
    height: 10.8px;
    border: 1.5px solid #fff;
    border-radius: 3px;
    padding: 1px;
    position: relative;
    margin-left: 0.8px;
}

.battery::before {
    content: '';
    position: absolute;
    left: 1.5px;
    top: 1.5px;
    width: 15px;
    height: 5px;
    background: #fff;
    border-radius: 1px;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2.5px;
    width: 2px;
    height: 3px;
    background: #fff;
    border-radius: 0 1px 1px 0;
}

.notification {
    margin-top: 25px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.app-icon {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-icon img {
    width: 30px;
    height: auto;
}

.notification-content h3 {
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-content p {
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

.content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    margin-top: -80px;
}

.content h1 {
    font-family: 'Gloock', serif;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0.92));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

.content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.coming-soon {
    margin-bottom: 2.5rem;
}

.coming-soon h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    opacity: 0.95;
}

.coming-soon p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0;
    padding: 0 1rem;
}

/* Base desktop styles */
.form-gif {
    position: absolute;
    width: 80%;
    height: auto;
    top: 400px;
    left: 10%;
    z-index: 1;
}

.waitlist-form {
    position: absolute;
    bottom: 135px;
    width: 100%;
    max-width: 320px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.waitlist-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

/* Style autofill while keeping functionality */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.08) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
    border-radius: 25px !important;
}

/* Ensure the autofill background respects border radius */
input:-webkit-autofill {
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
}

/* Remove browser validation styling */
input:invalid {
    box-shadow: none !important;
    background-color: transparent !important;
    outline: none !important;
}

input:valid {
    box-shadow: none !important;
    background-color: transparent !important;
    outline: none !important;
}

.input-group {
    position: relative;
    height: 48px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

/* Override any browser validation styles */
.input-group.success,
.input-group.error {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

input[type="email"] {
    width: calc(100% - 50px);
    height: 100%;
    background: transparent !important;
    border: none;
    padding: 0 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    outline: none;
    z-index: 11;
    border-radius: 25px;
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
}

input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    z-index: 12;
    pointer-events: auto;
}

/* Ensure consistent button style in all states */
button:hover,
button:focus,
button:active,
button:-webkit-autofill,
button.success {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
}

button.loading {
    cursor: wait;
    opacity: 0.7;
}

button.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes successPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

/* Success animation styles (preserved for future use)
.success-animation {
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
*/

.input-group.success input[type="email"] {
    border-color: rgba(0, 255, 157, 0.5);
}

.input-group.error input[type="email"] {
    border-color: rgba(255, 70, 70, 0.5);
}

.validation-icon {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.input-group.success .validation-icon {
    opacity: 1;
    color: rgba(0, 255, 157, 0.5);
}

.input-group.error .validation-icon {
    opacity: 1;
    color: rgba(255, 70, 70, 0.5);
}

.notification-message {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -40px;
    left: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-message.error {
    color: #ff4646;
    opacity: 1;
}

.notification-message.success {
    color: #00ff9d;
    opacity: 1;
}

/* Mobile styles */
@media only screen 
and (max-device-width: 896px) 
and (-webkit-min-device-pixel-ratio: 2) {
    .form-gif {
        width: 88%;
        top: 325px;
        left: 6%;
        height: auto;
    }

    .validation-icon {
        display: none; /* Hide validation icons on mobile */
    }

    .waitlist-form {
        bottom: 95px;
        width: 80%;
        max-width: 320px;
    }

    .input-group {
        position: relative;
        height: 48px;
        width: 100%;
        z-index: 10;
    }

    .input-group.success {
        position: relative;  /* Ensure position stays consistent */
        height: 48px;       /* Keep height consistent */
    }

    button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        z-index: 12;
    }

    .notification-message {
        position: absolute;
        width: 100%;
        text-align: center;
        bottom: -40px;  /* Position below the input group */
        left: 0;
        font-size: 14px;
    }

    input[type="email"] {
        padding: 0 50px 0 20px;
        width: 100%;
    }

    .iphone-container {
        width: 90%;
        max-width: 342px;
        height: 720px;
        margin: 20px auto;
        transform: scale(0.92);
        transform-origin: top center;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .input-group.success button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle {
        top: 3rem;
        right: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* iPhone-specific background adjustments */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 896px) 
and (-webkit-min-device-pixel-ratio: 2) {
    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
        min-height: 100vh;
    }

    body::before {
        position: fixed;
        background: rgba(0, 0, 0, 0.25);
    }

    .container {
        min-height: 100vh;
        padding: 2rem 2rem 0;
    }

    .page-container {
        min-height: 100vh;
        padding: 100px 1.5rem 40px;
    }

    /* Navigation styles */
    .side-nav {
        width: 63px;
        right: -63px;
        z-index: 9999;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        border-radius: 30px;
        padding: 15px 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: right;
    }

    .side-nav.active {
        right: 10px;
    }

    .side-nav-links {
        padding-right: 0;
        align-items: center;
    }

    .side-nav-links a {
        font-size: 0.75rem;
        margin: 12px 0;
        cursor: pointer;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
        padding: 8px;
    }

    .nav-toggle {
        right: 15px;
        z-index: 10000;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .iphone-container {
        width: 90%;
        max-width: 332px;
        height: 720px;
        margin: 20px auto;
        transform: scale(0.9);
        transform-origin: top center;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .iphone-container.menu-open {
        transform: scale(0.9) translateX(-30px);
    }
}

/* Floating Navigation Button */
.nav-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    z-index: 10000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px;
    transition: all 0.3s ease;
    background: transparent;
    backdrop-filter: none;
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 50%;
    right: -63px;
    transform: translateY(-50%);
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 63px;
}

.side-nav.active {
    right: 10px;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.side-nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: pointer;
    writing-mode: vertical-lr;
    text-orientation: upright;
    padding: 10px 0;
}

.side-nav-links a:hover {
    opacity: 1;
}

/* Mobile Navigation Adjustments */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 896px) 
and (-webkit-min-device-pixel-ratio: 2) {
    .nav-toggle {
        top: 2rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .side-nav {
        width: 55px;
        right: -55px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        border-radius: 27.5px;
        padding: 20px 0;
        display: flex;
        justify-content: center;
    }

    .side-nav.active {
        right: 10px;
    }

    .side-nav-links {
        gap: 2rem;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .side-nav-links a {
        font-size: 0.85rem;
        writing-mode: vertical-lr;
        text-orientation: upright;
        padding: 8px 0;
        letter-spacing: 0;
        margin: 8px 0;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .iphone-container {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .iphone-container.menu-open {
        transform: scale(0.9) translateX(-30px);
    }
}

/* Remove overlay styles */
.overlay {
    display: none;
}

.page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 60px;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0.95;
}

.about-content > p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
}

.feature-item h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0.95;
}

.feature-item p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .page-container {
        padding: 100px 1.5rem 40px;
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    .about-content > p {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .feature-grid {
        gap: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
    }
}

/* Remove old about section styles */
.about-section {
    display: none;
}

/* iPhone-specific adjustments */
@media only screen 
and (min-device-width: 390px) 
and (max-device-width: 428px) 
and (-webkit-min-device-pixel-ratio: 3) {
    .side-nav {
        width: 63px;
        right: -63px;
    }

    .side-nav-links {
        padding-right: 0;
    }
}

.input-group.success button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.input-group.success {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Ensure notification doesn't push content */
.notification-message {
    position: absolute;
    margin: 0;
    padding: 0;
}

/* Contact Page Styles */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0.95;
    position: relative;
}

.contact-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.contact-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.contact-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-box:hover::before {
    transform: translateX(100%);
}

.contact-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-icons {
    margin-bottom: 1.5rem;
}

.social-icons i {
    font-size: 2.5rem;
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contact-box:hover .social-icons i {
    transform: scale(1.1);
    opacity: 1;
}

.instagram-link {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.instagram-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-box:hover .instagram-link {
    opacity: 1;
}

.contact-box:hover .instagram-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    .contact-content h1 {
        font-size: 2.5rem;
    }

    .contact-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .contact-box {
        padding: 2rem;
    }

    .instagram-link {
        font-size: 1.1rem;
    }
}

/* iPhone-specific adjustments */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 896px) 
and (-webkit-min-device-pixel-ratio: 2) {
    .contact-content h1 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .contact-box {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
} 